loading...

Discussion on: What do you think about the ternary operator?

Collapse
itsasine profile image
ItsASine (Kayla)

I love ternaries and think they improve readability but:

  1. I keep strict ESLint rules for code standardization, which ensures ternary operations are formatted in a readable way and
  2. my background is in mathematics, so everything and anything is better than nested ifs in Excel. I'll never see anything else as unreadable after some of those messes I've had to read and create in order to finish a class.