Java technically did not have first-class functions until version 8, however you could simulate first-class functions using anonymous classes. Eich eventually settled on a language that has a C-style syntax (as does Java), yet has first-class functions. Things changed when Eich was told that the new language should be the scripting language companion to Java. Scheme, being a dialect of Lisp, is a functional programming language. When Brendan Eich created JavaScript in 1995, he intended to do Scheme in the browser.
0 Comments
Leave a Reply. |