Presentation on modules

ihab.awad at gmail.com ihab.awad at gmail.com
Sat Nov 7 09:03:58 PST 2009


On Sat, Nov 7, 2009 at 8:34 AM, Ash Berlin <ash_js at firemirror.com> wrote:
> Slide 10 says "Sync, arg must be a string literal". 1) why a string
> *literal*, ...

It's the simplest form of statically determinable identifier. We could
say, "arg must be an expression that statically evaluates to a
string", like:

  'f' + 'oo'

but we chose the simplest interpretation.

Essentially, we are making 'load' a special form.

> ... and 2) how can that be enforced?

The Caja system is a compiler. :)

Ihab

-- 
Ihab A.B. Awad, Palo Alto, CA


More information about the es-discuss mailing list