- From: <bugzilla@jessica.w3.org>
- Date: Fri, 04 May 2012 22:40:44 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16938 Summary: Change numeric constants to enumerated strings Product: HTML WG Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Media Source Extensions AssignedTo: adrianba@microsoft.com ReportedBy: odinho@opera.com QAContact: public-html-bugzilla@w3.org CC: mike@w3.org, public-html-wg-issue-tracking@w3.org, public-html@w3.org >From looking around at code on the internet, numeric constants are not really used at all. They don't fit very well into javascript, as it is not typed, so it's easier and shorter to just write the constant (1) instead of the (node.MY_CONSTANT). IndexedDB recently made the change to a enum of strings. http://lists.w3.org/Archives/Public/public-webapps/2012JanMar/thread.html#msg814 The disadvantage is that numeric constants are sadly used elsewhere. So it's more consistent continue as they are now. However, using enumerated strings will make the code much more readable and obvious. -- Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Friday, 4 May 2012 22:40:47 UTC