Functions in blocks?
# Brendan Eich (12 years ago)
See esdiscuss/2013-February/028632, find "3c. Absolute minimum intersection semantics" [for function in block outside of strict code], and (later) "Class, Modules implicitly strict".
See https://mail.mozilla.org/pipermail/es-discuss/2013-February/028632.html, find "3c. Absolute minimum intersection semantics" [for function in block outside of strict code], and (later) "Class, Modules implicitly strict". /be > Axel Rauschmayer <mailto:axel at rauschma.de> > September 13, 2013 10:13 PM > Has a decision been made how to handle functions in blocks in sloppy > mode? Did I miss it? > > Similarly: are only the bodies of modules implicitly strict? Or the > bodies of classes, too? > > Given the trick with contextually interpreting `let` as a keyword in > sloppy mode, all ES6 features seem to be available in both sloppy and > strict mode (right?). That seems like a pretty good solution (I also > would have been OK with only having ES6 features in strict mode). > > Thanks! > > Axel > > -- > Dr. Axel Rauschmayer > axel at rauschma.de <mailto:axel at rauschma.de> > > home: rauschma.de <http://rauschma.de> > twitter: twitter.com/rauschma <http://twitter.com/rauschma> > blog: 2ality.com <http://2ality.com> > > _______________________________________________ > es-discuss mailing list > es-discuss at mozilla.org > https://mail.mozilla.org/listinfo/es-discuss
# Allen Wirfs-Brock (12 years ago)
Also see people.mozilla.org/~jorendorff/es6-draft.html#sec-B.3.2 It still has some issues I need to work, put it's my starting point.
Also see https://people.mozilla.org/~jorendorff/es6-draft.html#sec-B.3.2 It still has some issues I need to work, put it's my starting point. Allen Brendan Eich <brendan at mozilla.com> wrote: >See >https://mail.mozilla.org/pipermail/es-discuss/2013-February/028632.html, >find "3c. Absolute minimum intersection semantics" [for function in >block outside of strict code], and (later) "Class, Modules implicitly >strict". > >/be > > > >> Axel Rauschmayer <mailto:axel at rauschma.de> >> September 13, 2013 10:13 PM >> Has a decision been made how to handle functions in blocks in sloppy >> mode? Did I miss it? >> >> Similarly: are only the bodies of modules implicitly strict? Or the >> bodies of classes, too? >> >> Given the trick with contextually interpreting `let` as a keyword in >> sloppy mode, all ES6 features seem to be available in both sloppy and >> strict mode (right?). That seems like a pretty good solution (I also >> would have been OK with only having ES6 features in strict mode). >> >> Thanks! >> >> Axel >> >> -- >> Dr. Axel Rauschmayer >> axel at rauschma.de <mailto:axel at rauschma.de> >> >> home: rauschma.de <http://rauschma.de> >> twitter: twitter.com/rauschma <http://twitter.com/rauschma> >> blog: 2ality.com <http://2ality.com> >> >> _______________________________________________ >> es-discuss mailing list >> es-discuss at mozilla.org >> https://mail.mozilla.org/listinfo/es-discuss >_______________________________________________ >es-discuss mailing list >es-discuss at mozilla.org >https://mail.mozilla.org/listinfo/es-discuss >
Has a decision been made how to handle functions in blocks in sloppy mode? Did I miss it?
Similarly: are only the bodies of modules implicitly strict? Or the bodies of classes, too?
Given the trick with contextually interpreting
let
as a keyword in sloppy mode, all ES6 features seem to be available in both sloppy and strict mode (right?). That seems like a pretty good solution (I also would have been OK with only having ES6 features in strict mode).