> No. I would rather an upgrade for typeof, than something that tries to do two 
> different things under one API.

Are those two things so different, though? Most people only need to know about 
the difference between primitive values and objects, because of typeof and 
instanceof.

If the “new typeof” is to be about classifying primitives and distinguishing 
primitive values from objects then I would make it return "object" for all 
non-primitive values (including functions).

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to