« Return to Thread: typeof null

Re: typeof null

by Andreas Rossberg-4 :: Rate this Message:

| View in Thread

On 9 May 2012 01:32, Brendan Eich <brendan@...> 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.

/Andreas
_______________________________________________
es-discuss mailing list
es-discuss@...
https://mail.mozilla.org/listinfo/es-discuss

 « Return to Thread: typeof null