by a_strange_guy · 15y ago · 0 comments
func outer(a int) {
func inner_helper(b int) {
...
}
}
Pascal allowed nested functions 40 years ago...Pascal's nested functions really just scoped the name of the function differently, but they were equivalent to a function definition on the outer-most level.