typeof null

Andreas Rossberg rossberg at google.com
Wed May 9 00:45:38 PDT 2012

On 9 May 2012 01:32, Brendan Eich <brendan at mozilla.org> wrote:
> We could indeed put type-reflecting method(s) there but I'm
> loath to add manifest constants. What's wrong with strings?

Depends on the mechanism. If it is supposed to be user-extensible
(i.e. an open set) then strings are bad because there might be clashes
between extensions made by separate libraries. With constants (or
unique names) as denotations no such issue exists.

IOW, strings don't scale well. They are only suitable for closed sets.


More information about the es-discuss mailing list