Y
Hacker News
new
|
ask
|
show
|
jobs
by
arbol
296 days ago
I can understand why else is sometimes not needed. JS linters will remove unnecessary else statements by default.
https://eslint.org/docs/latest/rules/no-else-return#rule-det...
But never using it is crazy.
1 comments
awesome_dude
296 days ago
In a similar vein to how I just responded to the other person, maybe eventually we'll abstract `else` away so that it's use is hidden, and the abstraction ensures that it's only being used where we all collectively decide it can/should be used.
link