Re: [heycam/webidl] [Clamp] and [EnforceRange] reduce the max value long long supports (#237)

By "silent" I mean "not obvious to the spec writer".  Clamping is very explicitly throwing away data, and knows it's doing it.

> I wonder why the normal case takes things mod 2^64 at all

Because that's the simple thing to do when you convert a double to a 64-bit integer in C/C++, is the honest explanation.  ;)  So that's what browsers did, etc.

> but it seems like a shame there's no "don't modulo me" integer type.

We're talking bigint here, right?  There seem to be no real use cases, and implementing such things in a non-performance-sucky way is not trivial, so....

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/237#issuecomment-260046332

Received on Friday, 11 November 2016 20:18:49 UTC