3

I believe ternary operators should be banned in python/ruby. They are confusing, irrelevant and people use them in bizzare places.

Comments
  • 0
    Python may have something a bit like the standard ternary operator, but if you see it used anywhere then the dev in question is most definitely not a good python dev.
  • 0
    As I have not used Python or Ruby before, why should they be banned?

    In languages like Java and C# they are used a lot, so what's wrong with them in Python or Ruby?
  • 1
    What is wrong with them? There are lots of situations where they are perfectly usable, for example in lambdas...
  • 0
    It's not entirely about the operator, but about the people using them. Saw 1 co-employee writing ternary inside ternary.
Add Comment