Proposal: expression mode (=)

Olivier Lalonde olalonde at gmail.com
Sun Oct 30 04:47:08 UTC 2016


Sounds like the "do expressions" proposal.
http://wiki.ecmascript.org/doku.php?id=strawman:do_expressions

On Sat, Oct 29, 2016 at 5:32 PM, Yongxu Ren <renyongxu at gmail.com> wrote:

> potentially, this syntax can be extended to functions
> ```
> function f() ={stat}
> // is equivalent to
> function f() {return stat}
>
>
> let f = () => ={stat}
> // are equivalent to
> let f = () => stat
> ```
>
> it can also be applied to `try...catch`.... and more, such as
>
> ```
> // pattern matching
> match(expr) {
>   pattern1:={
>     //block
>   }
>   pattern2:={
>     //block
>   }
>   pattern3:={
>     //block
>   }
> }
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>


-- 
- Oli

Oli Lalonde
http://www.syskall.com <-- connect with me!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161029/4097767c/attachment.html>


More information about the es-discuss mailing list