2011/1/21 Trygve Lie <[email protected]>: > Hi everybody > Tough; I got a bit puzzled by the "const" keyword in the MDN documentation: > > https://developer.mozilla.org/index.php?title=en/JavaScript/Guide/Values%2C_Variables%2C_and_Literals#Constants > > > > This keyword is one of those moments where I more or less have gone "what > a ****!! Where did I miss that part of the language?". In the > documentation on the URL above it does look like a legal keyword all over. > If one dig deeper into the reference of the "const" keyword in the > documentation above one get a more in depth explanation of it: > > https://developer.mozilla.org/en/JavaScript/Reference/Statements/const > If you read the page https://developer.mozilla.org/en/JavaScript/Reference/Statements/const it states:
const is a Mozilla-specific extension, it is not supported by IE, but has been partially supported by Opera since version 9.0 and Safari. > If the later, a Mozilla-specific extension, I must say I find it a bit > worrying that such a keyword is so vaguely marked as a Mozilla-specific > extension in the MDN documentation. I do kinda start to get the feeling > that the MDN documentation have little separation between what is > implemented in Mozilla engine and what is core JavaScript. Over at the > node.js mailing list I've also seen people mixing up WebGL specific stuff > with core JavaScript stuff due to documents they read at MDN. > It is even marked as bold. And also it is stated in the Statement table: Implemented in: JavaScript 1.5, NES 6.0 (Netscape extension, C engine only) -- Poetro -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/[email protected]/ To search via a non-Google archive, visit here: http://www.mail-archive.com/[email protected]/ To unsubscribe from this group, send email to [email protected]
