3 ms·
> 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 swi
by nicoburns 7y ago
> 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.