W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2016

Re: How to use [EnforceRange] with union types and enums

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Tue, 13 Sep 2016 09:12:47 -0400
To: Adam Bergkvist <adam.bergkvist@ericsson.com>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Message-ID: <d337ffb1-a8dc-9572-d5f0-4706491c38a6@mit.edu>
On 9/13/16 7:26 AM, Adam Bergkvist wrote:
> Is it valid to squeeze in the extended attribute in the typedef?

As the spec stands, it's not, though note the bug Anne linked to in his 
response.

The fundamental question is whether the range-enforcement is a property 
of the _type_ or of the _argument_.  It's mostly been treated as the 
latter, but this does lead to a slightly weird distinction between union 
and dictionary arguments in terms of how range-enforcement happens.

Maybe the right answer is to really make range-enforcement a property of 
the type, nix the [EnforceRange] thing entirely and just have an 
"enforced long" type and similar for other numeric types....

-Boris
Received on Tuesday, 13 September 2016 13:13:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 September 2016 13:13:19 UTC