Modular At-Names

Kevin Smith khs4473 at gmail.com
Fri Oct 12 12:45:52 PDT 2012


Also, I should mention a couple of things:

1.  This design essentially paves the cowpath trod with underscore-prefixed
property names, adding the desired property of conflict elimination.

2.  If "System" is a built-in *module instance*, and the @iterator symbol
is defined internally within that module as:

    sym @iterator = "org.ecma-whatever.es.6.iterator"; // Or perhaps more
likely a uuid...

Then we have exactly the desired syntax that we're looking for:

    import @iterator from System; // no funky "@belch" URLs!!

    class C {

      @iterator() { ... }
    }

And it works cross-frame, cross-loader-context and all.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121012/28b266b2/attachment.html>


More information about the es-discuss mailing list