|
|
|
|
|
by elyseum
1893 days ago
|
|
A good example of: just because you can, it doesn’t mean you should.
Yes, the if/else sequence is a bit more unstructured in terms of code layout, but chances the next developer browsing the code will instantly know what it does will be much higher. |
|
Completely agree, it's like writing readable prose, understand your audience.
That said, give me proper pattern matching in JS. Hard to live with languages that haven't caught up yet.