Rick Waldron (2013-09-26T23:26:41.000Z)
domenic at domenicdenicola.com (2013-10-13T02:36:46.706Z)
On Thu, Sep 26, 2013 at 7:14 PM, David Herman <dherman at mozilla.com> wrote: > So let's assume there is such a registry. You can avoid accidental > collisions with the ugliest name in the universe -- gensym that thing to > the n'th degree -- but you're no longer forcing all clients to deal with > the ugliness. You've abstracted it behind your library. Let's say I'm > implementing a serialization library and want to create a @@serialize > symbol for people to coordinate on. I'd do something like the following: > > // serialize.js > import { lookup, register } from "js/registry"; > > const myGUID = "__@@blaaaaarrrgggghhhAAAAAUUUUUGGGGHHHfnordfnordfnord29834983413451839512@@__"; > Thinking about this in terms of tooling, at even the terminal level, might look like this: ![{ '__@@blaaaaarrrgggghhhAAAAAUUUUUGGGGHHHfnordfnordfnord29834983413451839512@@__': [Function, '[symbol]': [Function] }](http://gyazo.com/f61d0e25366ce7e526c79ab7fa77cb17.png) Subjectively, this makes my skin crawl.