Outside of classes, async is already a variable, so it requires a NoLineTerminatorHere. You're saying in classes relax that restriction so that you would *require* a semi for a field named get, set or async?
-
-
Replying to @wycats @lucasazzola and
I thought fields named `get` and `set` already require a semicolon? I thought `async` should be included too. https://tc39.github.io/proposal-class-fields/#sec-asi-hazards-in-class-bodies …
1 reply 0 retweets 0 likes -
Replying to @spion @lucasazzola and
Sorry. (this space is confusing with all the double negatives inside of double negatives). We could relax NoLineTerminatorHere for async methods in classes, but we won't be able to do that again for new contextual keywords later. Also inconsistency with async functions.
2 replies 0 retweets 0 likes -
All of this just doesn't seem like a big deal to me. Although I might be over simplifying it. If I write code(without a linter, or prettier or tests) and it doesn't work, then it doesn't work. Who is the target audience for class properties? Programmers?
1 reply 0 retweets 0 likes -
Replying to @drewhamlett @spion and
I don't understand. Programmers are the target audience for all of JS no?
1 reply 0 retweets 0 likes -
Yes, so can we rely on that person to see an issue and correct it(ASI issues with class props). Again they're not using a linter, prettier or writing tests. Assumingely if they're "professional" programmers, they're getting paid to solve problems already.
1 reply 0 retweets 0 likes -
Replying to @drewhamlett @spion and
From this perspective, why do you care what TC39 recommends?
1 reply 0 retweets 0 likes -
I care very much.We choose no-semi at work because that's what we like as a team, plus we do ruby. When we bring on new devs and they are reading that TC39 recommends using semi colons, we have to explain now why we are going against TC39 instead of just personal taste
1 reply 0 retweets 0 likes -
Replying to @drewhamlett @spion and
I think it would make sense for us to update the guidance to specifically say that using an up to date linter tool is acceptable too. fwiw my company does Rails for the backend (big app) and JS for the front and using semis for JS isn't bad. But I respect the style.
1 reply 0 retweets 1 like -
Awesome! And yes as a Rails and Ember user I know who you are. Haha
. I do respect both styles, but seeing this thread, maybe no-semi devs are under represented on TC39? Not sure.1 reply 0 retweets 1 like
They definitely are.
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.