Jul 30, 2017 · 1 min read
I totaly don’t agree. This is building up a dogma where we don’t need one. The ternary is useful in a lot of cases. The if statement though is much more readable for complex stuff.
Don’t like this „doing things different to do things different“ approaches.
Though the idea to think about how to replace any if-statement with a ternary-statement is a nice brain jogging excercise.
