Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
arbol
6 months ago
|
parent
|
context
|
favorite
| on:
Cognitive load is what matters
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.
awesome_dude
6 months 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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://eslint.org/docs/latest/rules/no-else-return#rule-det...
But never using it is crazy.