W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

Re: Named constant as default value

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 17 Apr 2012 12:34:06 +0200
To: "Seo Sanghyeon" <sanxiyn@gmail.com>, "Cameron McCormack" <cam@mcc.id.au>
Cc: public-script-coord@w3.org, www-dom@w3.org
Message-ID: <op.wcwnm4x964w2qv@annevk-macbookpro.local>
On Sat, 14 Apr 2012 15:07:37 +0200, Cameron McCormack <cam@mcc.id.au>  
wrote:
> Seo Sanghyeon:
>> Which of the following is true?
>> 1. WebIDL specification should be updated.
>> 2. DOM4 specification should be updated.
>> 3. It is okay for DOM4 specifcation WebIDL to be non-conforming.
>> It is for illustrative purpose.
>
> Either (1) and (2), or just (2).  If we wanted to allow the constant to  
> be used here, it'd need to be NodeFilter.SHOW_ALL or  
> NodeFilter::SHOW_ALL.  But given that we're trying to move away from  
> numeric constants, I'm not sure if it's worth allowing them to be used  
> as default values.

I've gone with 2.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Tuesday, 17 April 2012 10:35:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:14:09 GMT