Rename Number.prototype.clz to Math.clz
allen at wirfs-brock.com
Wed Jan 15 11:26:41 PST 2014
On Jan 15, 2014, at 11:18 AM, Jason Orendorff wrote:
> ES6 adds a clz function, but it's a method of Number.prototype.clz
> rather than Math.clz.
> The rationale for this decision is here (search for clz in the page):
> Can we reverse this, for users' sake? The pattern in ES1-5 is quite
> strong: math functions go on the Math object.
> The rationale (What if we add a uint64 type?) doesn't seem compelling
> enough to justify the weirdness of the result: we'll have a single
> mathematical operation available only as a Number method, and all
> others available only as Math functions.
So we discussed all that when we made that decision. I understand that you disagree but is there any new data that should cause us to reopen an issue that was already discussed and decided at a TC39 meeting?
More information about the es-discuss