3 ms·
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 d
by goatlover 7y ago
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.
- 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.