but what does this @BrendanEich fella know about JavaScript anyway
-
-
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
I think that I shall find no glee In semicolons inserted automatically
-
I felt pretty slick — but am I? — removing this particular semi
- 2 more replies
New conversation -
-
-
Mathias if you’re starting another semicolon war I’m deleting your account
-
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; what the world really needs ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; is a semicolon emoji ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- 4 more replies
New conversation -
-
-
My blog from 2012 was precise: newline isn't always significant, so you can't assume it is; you need a fully-parsing style checker. Standard is built on eslint, which parses, so no prob.
-
there's a whole section about "be careful these cases aren't covered" in StandardJS, so the parsing still assumes things not meant by developers. I'm also a huge fan of your 2012 post.
- 13 more replies
New conversation -
-
-
yep. I'm a fan of ; but got used to "standardjs" :( now I have to add ; in many places otherwise there will be bugs (or using ASI), and sometimes, forget to add ; in my CSSs :/
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Makes me wonder: is data => { if (data) { doSomethingWith(data); } } nicer to read than data => data && doSomethingWith(data); ?
-
No ASI involved right? Want to make sure I’m following & this is a change of topic. The ‘if’ form avoids a potential result value “capability leak” in case of doSomethingWith returning a value that should not be propagated to the arrow’s return value. It is also simple & direct.
- 2 more replies
New conversation -
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.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.