ES8 Proposal: Optional Static Typing (Brandon Andrews)
Anne van Kesteren
annevk at annevk.nl
Mon Jul 20 12:52:17 UTC 2015
On Sun, Jul 19, 2015 at 10:05 PM, Ron Waldon <jokeyrhyme at gmail.com> wrote:
> We've seen a new pattern in ES5 and continued now with ES2015:
>
> - Array.isArray()
> - Number.isNumber()
> - Object.isObject()
> - etc...
I can only find the first in this list.
> Perhaps this pattern just needs to be continued for all types, including the
> TypedArrays (if not already being considered). I personally like this
> pattern because it doesn't change typeof, and it provides an less-verbose
> alternative, and it is able to be polyfilled because it's an API addition
> and not a syntax change.
Note https://lists.w3.org/Archives/Public/public-script-coord/2013JulSep/thread.html#msg105
where this was discussed previously and not really met with
acceptance.
--
https://annevankesteren.nl/
More information about the es-discuss
mailing list