4 ms·
> JavaScript was, as far as I can tell, arguably the first truly mainstream language to embrace first-class functions and closures. This is a nitpick, but Perl
by sigil 12y ago
> JavaScript was, as far as I can tell, arguably the first truly mainstream language to embrace first-class functions and closures.
This is a nitpick, but Perl has had closures since the early 90s -- before Perl5 even.
- zoomerang 12y agoNot to mention Python and Ruby.
- Al__Dante 12y agoAnd Lisp :-)
- denibertovic 12y agoRuby doesn't have functions as first class citizens. Python does.
- yohanatan 12y agoThat's not a nitpick--that's getting the facts right.
- etler 12y agoIt really depends on your definition of what mainstream means when it comes to languages. I think you can both be right depending on the interpretation.