3 ms·
Would if/else have been considered optimal to you if you hadn’t already been conditioned (ha!) that way by other programming languages? “When” actually seems b
by adastra22 5y ago
Would if/else have been considered optimal to you if you hadn’t already been conditioned (ha!) that way by other programming languages?
“When” actually seems better in a purely declarative language.
- andreareina 5y agoMaybe it's prior exposure to lisp, but I wouldn't expect "when" to have an "else" clause. Can't think of an idiomatic natural-language case with that structure either.
- IshKebab 5y agoI have never used SASS and if/else is obviously better than when/else.