W3C home > Mailing lists > Public > public-script-coord@w3.org > October to December 2011

[Bug 14878] Rename const to legacyconst

From: <bugzilla@jessica.w3.org>
Date: Mon, 21 Nov 2011 19:51:27 +0000
To: public-script-coord@w3.org
Message-Id: <E1RSZtn-0002Y1-S3@jessica.w3.org>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:05 UTC