Proposal: expression mode (=) (Caitlin Potter)
# Isiah Meadows (8 years ago)
I'd have to agree that =
just feels ugly and slightly wrong for this use
case.
I'd have to agree that `=` just feels ugly and slightly wrong for this use case. On Sun, Oct 30, 2016, 22:05 Caitlin Potter <caitpotter88 at gmail.com> wrote: > > > > On Oct 30, 2016, at 9:33 PM, David Baldwin < > david.chris.baldwin at gmail.com> wrote: > > > > So just to clarify would the non-labeled statements be required to be > before the labeled statements in the object? > > if you wanted this to be compatible with code on the web (eg foo = { key: > value }), yes (and, you do). But that would be a confusing caveat, so I'd > go with a different strategy (new operators or keywords). > > > > > May it would be better to have a "code" key that would contain all > runnable code statements. It wouldn't be aa elegant but at least it would > be clear > > I'm not entirely sure what this means. Something like objc/swift blocks? > > > > > > >> On Oct 30, 2016, 08:09 -0700, es-discuss-request at mozilla.org, wrote: > >> Send es-discuss mailing list submissions to > >> es-discuss at mozilla.org > >> > >> To subscribe or unsubscribe via the World Wide Web, visit > >> https://mail.mozilla.org/listinfo/es-discuss > >> or, via email, send a message with subject or body 'help' to > >> es-discuss-request at mozilla.org > >> > >> You can reach the person managing the list at > >> es-discuss-owner at mozilla.org > >> > >> When replying, please edit your Subject line so it is more specific > >> than "Re: Contents of es-discuss digest..." > >> > >> Today's Topics: > >> > >> 1. Re: Proposal: expression mode (=) (Caitlin Potter) > >> 2. Re: Proposal: expression mode (=) (Caitlin Potter) > >> > >> _______________________________________________ > >> 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 > _______________________________________________ > es-discuss mailing list > es-discuss at mozilla.org > https://mail.mozilla.org/listinfo/es-discuss > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161031/9f0543ba/attachment-0001.html>
if you wanted this to be compatible with code on the web (eg foo = { key: value }), yes (and, you do). But that would be a confusing caveat, so I'd go with a different strategy (new operators or keywords).
I'm not entirely sure what this means. Something like objc/swift blocks?