May 2015 Meeting Notes

Brendan Eich brendan at mozilla.org
Tue Jun 30 18:12:04 UTC 2015


Andreas Rossberg wrote:
> A seemingly predictable name is a rather bad idea, because it would be 
> very brittle, e.g., depend on other libraries loaded, or even loading 
> order. It's better to have clearly non-deterministic (e.g. gensym) 
> than something that pretends to be deterministic but isn't in practice.
>
> In fact, it might be best if typeof returned the symbol itself. At 
> least that cleanly matches the generative nature of the type 
> definition. If you want it to work cross-realm, you have to broker the 
> symbol as usual.

That's what Niko wrote up:

https://github.com/nikomatsakis/typed-objects-explainer/blob/master/valuetypes.md#the-typeof-operator

/be


More information about the es-discuss mailing list