JS syntax future-proofing, Macros, the "Reader" (was: Performance concern with let/const)

Brendan Eich brendan at mozilla.com
Tue Sep 18 10:17:30 PDT 2012


François REMY wrote:
> |  But if we have macros, then many progressive
> |  enhancement and anti-regressive polyfill approaches can be done, even
> |  with new syntax (not just with APIs).
>
> Seems like another good way of fixing the issue :-) However, this 
> seems to require some form of conditionnal compilation to work , 
> right? [1]
>
> [1] http://www.javascriptkit.com/javatutors/conditionalcompile.shtml

Macros have nothing to do with conditional compilation _per se_. When 
you read Macros in a JS context, don't think the C Pre-Processor, think 
Scheme!

/be


More information about the es-discuss mailing list