5 ms·
JavaScript does have lexical block scope since ES6, with the `let` and `const` statements. And continuations are implemented by convention in nodeJS (through c
by Technetium_Hat 7y ago
JavaScript does have lexical block scope since ES6, with the `let` and `const` statements.
And continuations are implemented by convention in nodeJS (through callbacks)
It even is specified as including TCO, a classic scheme feature, but so far it is implemented only in Safari.
Non mutation also seems to be a trend in web development, again thanks to `const`. The only things that make JavaScript not scheme, then, are syntax and the lack of macros. (Which is kind of a result of the more complex syntax)