Rename Number.prototype.clz to Math.clz

Brendan Eich brendan at mozilla.com
Thu Jan 16 13:58:57 PST 2014


Kevin Reid wrote:
> FWIW: Common Lisp has rigorously transparent (that is, you cannot 
> observe the machine word size) bigints and quite a few binary 
> operations defined on them, so it's where I personally would look for 
> precedent on such questions.

(a) we don't have a bignum type yet; (b) we want to JIT to concrete 
machine types where possible. (b) does not require clz32 vs. clz64 in my 
view, because of type inference or AOT type-checking (asm.js). But we 
don't want to require bignums.

/be


More information about the es-discuss mailing list