“内部函数”常见的英文表达是 "inner function" 或 "nested function"(当强调函数嵌套在另一个函数内部时)。
"inner function":直接对应“内部函数”,指定义在另一个函数内部的函数。
"nested function":侧重描述函数嵌套的结构,也常用于此场景。
In programming, an inner function is defined within another function and has access to its outer function's variables.
(在编程中,内部函数定义在另一个函数内部,可以访问外部函数的变量。)
根据语境选择即可,两者均正确。