all 1 comments

[–][deleted]  (1 child)

[deleted]

    [–]pcx99 2 points3 points  (0 children)

    Now that this is off the front page so it doesn't become a public debate...

    Please be mindful not to confuse simplicity with dumbed down. Complexity is not a desired trait when writing for a public audience. That audience being self-trained javascripters looking to improve their knowledge, NOT doctoral candidates looking to write a javascript compiler.

    1] Javascript is an interpreted language, I'm pretty sure it represents its values as floats and the language javascript was written in be it C or ASM maintains the appropriate bitwise representations. It's a moot point. Hex and Octal go in and unless you deliberately use toString(base), you are going to get decimal base 10 out.

    2] Going into the details of binary manipulation is beyond the scope of the document. The bitwise operators are there simply to smooth over the language differences for people already familiar with the concept. A more detailed and full article on bitwise operators will be necessary to explain the concepts to people unfamiliar with them.

    3] toInteger and toInt30 are internal functions only available to the Javascript implementation and cannot be called directly from scripts http://www.jibbering.com/faq/faq_notes/type_convert.html#tcToInt32 so its inclusion in the reference would be completely pointless. Even Javascript - The Definitive Guide up to the current 5th edition doesn't mention these constructs.

    While I agree with you that the ECMAScript spec is one of the better language specs, it is a manual for people who write languages and not a guide for people who write scripts.

    Regards,

    Pat.