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>

--- 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


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.4.0 : Friday, 17 January 2020 17:14:04 UTC