you are viewing a single comment's thread
view the rest of the comments
[–] 3 points 11 months ago

If there's more than two branches in the decision tree I'll default to a if/else or switch/case except if I want to initialise a const to a conditional value, which is one of the places I praise the lord for ternaries.

  • source
  • parent