Hacker News new | ask | show | jobs
by a_strange_guy 5451 days ago
This is what they want:

    func outer(a int) {
        func inner_helper(b int) {
            ...
        }
    }
Pascal allowed nested functions 40 years ago...
1 comments

When saying "nested functions" in 2011, people expect you to mean lexically scoped nested functions.

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.