Nit: Maybe have default values in ConstrainLongRange etc.

Hi, some minor implementer's feedback.

I'm adding these default values to ranges in my implementation, because 
it makes the code simpler:

dictionary ConstrainLongRange {
     long min = -2147483647; // +1 works around windows compiler bug
     long max = 2147483647;
};

dictionary ConstrainDoubleRange {
     unrestricted double min = -Infinity;
     unrestricted double max = Infinity;
};

This way I don't have to check whether range values are passed in, I can 
just use them.

Maybe worth putting in the spec?

.: Jan-Ivar :.

Received on Tuesday, 8 July 2014 17:27:02 UTC