2 ms·
> pretty cool to see all the different ways ECMA-262 has been implemented My favorite is that the language spec was written as quite regular pseudo-code... so
by mncharity 8y ago
> pretty cool to see all the different ways ECMA-262 has been implemented
My favorite is that the language spec was written as quite regular pseudo-code... so at least as of some years ago, and after some manual massage to clean up irregularities, one could automagically transliterate the text of the spec into code. And if the target language had label gotos (because the spec was full of 'then go to step N'), and permited arbitrary identifiers, then the code could read just like the spec. Making code-review proof reading much easier.
That's one of my canaries for detecting when a non-crippling programming language finally exists - someone generates a not-necessarily performant but fully spec-compliant js implementation with some strikingly tiny effort. A few days.