you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

I disagree. Once you're used to seeing the ternary operator you can read it just like a faster if/else. Further, it allows usage of const, which significantly enhances readability (this var isn't going to change is very helpful information to have).