Rename Number.prototype.clz to Math.clz

Andrea Giammarchi andrea.giammarchi at gmail.com
Thu Jan 16 23:02:21 PST 2014


would -0 return -1 too ? I could not resist asking for this, sorry!


On Thu, Jan 16, 2014 at 7:20 PM, Brendan Eich <brendan at mozilla.com> wrote:

> Jason Orendorff wrote:
>
>> >  What is Math.bitlen(-1) then? Isn’t this just the same problem as
>>> before, except it happens for negative numbers instead of positive?
>>>
>>
>> No opinion.
>>
>
> Not sure it matters. We could return -1 for any negative number, 0 for 0,
> and > 0 for positive integral values.
>
> /be
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140116/7fb289df/attachment.html>


More information about the es-discuss mailing list