3 ms·
>Another notable example is the formalization of function-in-block semantics, which broke compatibility with various implementations in order to find a least-ba
by asddubs 6y ago
>Another notable example is the formalization of function-in-block semantics, which broke compatibility with various implementations in order to find a least-bad compromise everyone could interop on. I'm not sure if JS 1.1 even had blocks though, much less functions in blocks...
can you explain what you mean? Did early js implementations not have functions inheriting the block scope?
- olliej 6y agoIf they’re referring to lexical block scope then indeed, js historically did not have block scoping, it was function and global scoped. There are also differences in how eval works, etc