object literal types

Michael Haufe TNO at TheNewObjective.com
Tue Feb 17 05:07:22 PST 2009


David-Sarah Hopwood wrote:

> "':' (not '=') is used to separate a property name from its value, so it
> can't also be used for type annotations."

Except in the case of JavaScript's non-standard Sharp Variables (https://developer.mozilla.org/En/Sharp_variables_in_JavaScript), which is 
what sparked my question.Is there some ambiguity on why this syntax reuse would be off the table?






More information about the Es-discuss mailing list