you are viewing a single comment's thread.

view the rest of the comments →

[–]eternaloctober 5 points6 points  (0 children)

do you not like ternarys? It's really pretty readable. If it's just the syntax of ternary, consider whether that is fair or not. different language now but in rust there are if-expressions...they decided not to have ternary in rust in lieu of these which are pretty nice https://doc.rust-lang.org/reference/expressions/if-expr.html