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

On 2016-09-13 15:23, Anne van Kesteren wrote:
> On Tue, Sep 13, 2016 at 3:12 PM, Boris Zbarsky <> wrote:
>> 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....
> That's what we ended up doing when we hit exactly this problem with
> ByteString/USVString (formerly [EnforceUTF16] DOMString or some
> such)...

Thanks for quick feedback.

Having a strict type that enforces range seems like flexible solution.


Received on Tuesday, 13 September 2016 13:35:18 UTC