Re:Is there any code in Firefox (as of 2020) that comes from...
by goatlover on Saturday March 28, 2020 @01:40AM
(#22709472)
There are also people who think that ternary operators and switch statements are too clever. I tend to prefer concise clarity over unnecessary boilerplate and duplication. But that's the issue, opinions differ on what's clear versus clever. Someone who prefers Go will give you a different answer than a Lisper.
[ Parent
| on HN ]
Re:Is there any code in Firefox (as of 2020) that comes from...
by nicoburns on Saturday March 28, 2020 @07:25AM
(#22710466)
> There are also people who think that ternary operators and switch statements are too clever.
This can be solved at a language level by making if-else and switch (aka match) expressions. I don't understand why more languages don't do this. It doesn't seem like it would too hard to implement, and C# 8 has shown that it can integrate well an existing C-like language.