1. Don't start a line with ( or [, and now `, 2. Code normally. Again this is something you haven't had to to think about in a long long time, if a linter has been used(which it should be on every team)
-
-
-
Replying to @Vjeux @drewhamlett and
What about class properties?https://github.com/tc39/ecma262/pull/1062#issuecomment-357089404 …
1 reply 0 retweets 0 likes -
Replying to @lucasazzola @drewhamlett and
the whole thread is about class properties introducing more ASI issues :)
1 reply 0 retweets 0 likes -
Replying to @Vjeux @drewhamlett and
Yeah I know, which is why I mentioned them. It's not just ( [ ` < as a lot of people think.
1 reply 0 retweets 1 like -
Replying to @lucasazzola @Vjeux and
Of those new examples, the worst one isn't fixed by always using semicolons. I can see people trying to put `async` on a separate line, especially once decorators get in.
2 replies 0 retweets 0 likes -
Replying to @spion @lucasazzola and
That issue would have been fixed by making semis mandatory in classes, which is perhaps what we should have done.
1 reply 0 retweets 2 likes -
Replying to @wycats @lucasazzola and
Perhaps TC39 should make that a recommendation to themselves then
2 replies 0 retweets 0 likes -
The recommendation is very specific about what/when things occur and provides an actionable task. Is there any way we can reword it to be better while preserving these listings and having an actionable task for them?
1 reply 0 retweets 0 likes -
Replying to @bradleymeck @wycats and
The only actionable task that really helps is to use a tool that detects these issues or for implementers to add warnings for unexpected ASI in engines (like return/break and now async methods)
2 replies 0 retweets 2 likes
Also get and set fields.
-
-
Replying to @wycats @bradleymeck and
I thought get and set don't cause automatic semicolon insertions?
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.