Paren-free heads strawman
Bob Myers
rtm at gol.com
Mon Feb 1 17:19:28 UTC 2016
I love the paren-free head idea. But as an obsessive user of non-braced
single-statement if/for/while bodies, I don't see the advantage of making
the head paren-free at the cost of mandating braces for the body.
Has either of the following been considered:
```js
if i < 3: foo();
if i < 3 do foo();
```
--
Bob
On Mon, Feb 1, 2016 at 4:43 PM, kdex <kdex at kdex.de> wrote:
> I've noticed that there's a strawman that has been left untouched for
> quite a while, namely [strawman:paren_free](
> http://wiki.ecmascript.org/doku.php?id=strawman:paren_free).
>
> It intends to make parentheses in heads optional, making, for instance:
> ```js
> if x > 3 {
> /* … */
> }
> ```
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160201/4a675ab6/attachment-0001.html>
More information about the es-discuss
mailing list