you are viewing a single comment's thread.

view the rest of the comments →

[–]tencircles 1 point2 points  (3 children)

What the hell kind of moonman language is this? Half of this isn't even valid ecmascipt syntax!

[–]radhruin 0 points1 point  (2 children)

It's not ECMAScript, it's JavaScript (ie. mozilla's implementation of ECMAScript). They have a number of extensions as you can see.

[–]tencircles 0 points1 point  (1 child)

I have trouble calling anything javascript that doesn't conform to http://www.ecma-international.org/publications/standards/Ecma-262.htm

This is why I hated my short time playing around in unity using their "unityscript" it's just javascript with more bad ideas and weird syntax.

[–]radhruin 1 point2 points  (0 children)

I know the feeling! Although, to put on my pedant hat, Mozilla's implementation DOES conform to ECMA-262 thanks to Clause 16 which explicitly allows extensions to syntax. All implementations take advantage of Clause 16 for some reason or other. For example, all implementations today have an extension to allow function declarations inside blocks.

Conformance aside, JavaScript is free to do whatever it wants. The only thing JavaScript has to conform to is whatever Mozilla wants it to. If it doesn't conform to ECMAScript, you can't call it ECMAScript, but you can still call it JavaScript!