w/ const, at least we can say "it's not reassigned, not sure about mutations though". With let, you know neither. Seems uncontroversial 
-
-
Replying to @ryanflorence
Only problem is people thinking it can't be mutated and then get surprised, but everything you don't know can surprise you.
4 replies 1 retweet 17 likes -
Replying to @ryanflorence
one problem is that function parameters can't be declared const, but const-first code styles don't remind you they're mutable
4 replies 2 retweets 11 likes -
Replying to @wycats
which makes the scoping guarantees of either a problem too! Back to var I guess.
1 reply 0 retweets 0 likes -
Replying to @ryanflorence
I just use let except for module-wide constants and keep my functions small ;)
1 reply 0 retweets 12 likes -
-
Replying to @ryanflorence
nah -- params in strict mode are `let` + extra nested scopes.
1 reply 0 retweets 0 likes -
Replying to @wycats @ryanflorence
How would you distinguish them being let vs. var?
1 reply 0 retweets 2 likes -
we could have made them `var` to avoid that error, but intentionally chose otherwise :)
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.