RE: IDL: number types

From: annevankesteren@gmail.com [annevankesteren@gmail.com] on behalf of Anne van Kesteren [annevk@annevk.nl]

>> should only be a single number type (aka "Number").

> Well, we would still want a distinction between floating point, integer, non-negative integer, floating point without Infinity, -Infinity, or NaN, ...

Why? JavaScript can't distinguish, so why should WebIDL?

"So that C++ can be generated from WebIDL" is perfectly valid answer, if that's what you're getting at.

Or is the idea that properties specified as non-negative integers should have setters that throw when you set them to negative integers or to floating point numbers?


Received on Wednesday, 20 March 2013 16:46:34 UTC