Proposal: expression mode (=)

Yongxu Ren renyongxu at gmail.com
Sun Oct 30 00:32:38 UTC 2016


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
  }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20161029/9b57cb7a/attachment.html>


More information about the es-discuss mailing list