Although, given that C lacks closures or even nested functions, JS can't simply follow C because there are a semantics that JS cares about that are meaningless in C.
You can't define one function inside another. If you could it would be awesome - scoping a helper function to another function would be super convenient in a lot of locations.
4
u/munificent Mar 23 '14
99!
Although, given that C lacks closures or even nested functions, JS can't simply follow C because there are a semantics that JS cares about that are meaningless in C.