4 ms·
Actually Scheme is Algol in LISP clothing. I don’t know what that makes JavaScript.
by bakul 5y ago
Actually Scheme is Algol in LISP clothing. I don’t know what that makes JavaScript.
- hajile 5y agoThere were some similarities, but I'd say Scheme is more different than similar. Scheme is GC'd Scheme is fundamentally based on functions rather than proceedures Scheme functions are first-class Scheme uses tail recursion in place of loops Scheme uses CPS and continuations (even though that was no doubt a mistake) Scheme has symbols and programs are composed of symbols. Scheme makes use of macros pervasively (not even C-style preprocessors were in ALGOL) Scheme has only expressions while ALGOL has statements. A lot of surface-level API designs and names seem inspired by ALGOL, but the fundamental building blocks seem very different to me.
- bakul 5y agoScheme adapted lexical scoping and block structure from Algol 60. Lexical scoping was a major departure from LISP in 1970s. Call/CC was not in the original Scheme. Probably added in R4RS. Macros came later too. My point was that calling JS Scheme in Algol clothing even less valid than calling Scheme Algol in LISP clothing!