Sharp Variables

Brendan Eich brendan at
Thu May 26 13:14:47 PDT 2011

On May 26, 2011, at 1:09 PM, Michael Haufe wrote:

> Is there any plan to standardize Sharp Variables or something similar?

No plans. I tried in 1998 or 1999, when TC39 was doing ES3. Rok Yu, then of Microsoft, argued against standardizing serialization since it was domain-specific and best done by libraries (unfortunately until WeakMaps in, implemented in Firefox nightlies, there has not been an efficient way to handle the join-points and cycles that sharps handle). Also, some hated the syntax.

The plan of record at Mozilla is recorded here: (deprecate sharp variables) (remove sharp variables)

The bugs must be fixed in that order, with a release in between.

The deprecation bug has an attachment,

written by Jason Orendorff, that is a self-hosted implementation of {Array,Object}.prototype.toSource. The idea is to self-host all of uneval, and provide a sharp-parsing version of eval or JSON.parse if needed. At the end of the deprecation/removal cycle, sharps would be implemented by "library code" only. No hardcoded syntax.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list