[Bug 14878] Rename const to legacyconst

http://www.w3.org/Bugs/Public/show_bug.cgi?id=14878

--- Comment #8 from Brendan Eich <brendan@mozilla.org> 2011-11-21 19:51:27 UTC ---
(In reply to comment #6)
> http://ejohn.org/blog/comparing-document-position/ "This, undoubtedly, makes
> for the single most confusing method of the DOM API" about
> compareDocumentPosition()'s bitmask behavior.

Isn't the problem there all the magic number hardcodings? Where are the
manifest constants naming the bits?

(Did I see && used where & was needed too, and possibly some precedence
problems to boot? Ok, C's operator hierarchy is awkward. I won't cry if you ban
numeric consts, but I side with Travis: we need best-practices, not outright
bans.)

/be

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 21 November 2011 19:51:33 UTC