There are [no LineTerminator here] rules in the ES grammar, in order to prevent 
the most pernicious trap when using ASI:

```
return // implicit semicolon here
a = b
```

Those [no LineTerminator here] rules have not been included in constructs that 
don’t need them. As a result:

```
const object = {
    get // no implicit comma here
    y: 2
    
    z: x // no implicit comma here
    in: "foo"
}
```

So, no, it’s not a good idea.

—Claude

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to