Referencing local variable before assignment results in unexpected behavior

I would not expect people who aren’t used to functional programming to define inner functions at all though? You can’t do that in C/C++, for example. What non-functional programming language are people coming from that they expect to be able to define inner functions but those inner functions aren’t closures?

4 Likes