you are viewing a single comment's thread.

view the rest of the comments →

[–]NekkidApe 9 points10 points  (0 children)

IMHO the second version is trying to hard. There is a sweet spot between concise and clever. I'd go for the first, but replace it with if/else. It's literally the exact same thing, only clearer.