by sgift · 13y ago · 0 comments
Conclusion: We have different preferences.
The ternary operator in general eases understanding because it extracts the common bit, i.e. "sides[i] =", meaning you don't have to carefully read the contents of each and every conditional block to verify nothing else is going on besides this one assignment.
It's a nice little oasis of Functional style in an otherwise pretty un-Functional language.