Currently, there's 17 tagged questions for this tag, either being superfluous (use every tag I can) kinda questions, or very complex ternaries replaced a potentially large if-else
statement, like Forming a dictionary where all values are only conditionally set
Should ternary-operator be burninated or as @Jamal pointed out in the comments, or synonymise with conditions?
[ternary-operator].bad_tag()
, not==
.==
makes no sense here. \$\endgroup\$bad_tag
is a constant, whereas[ternary-operator]
doesn't have a bad tag method \$\endgroup\$==
suggests that there's only one tag that'sbad_tag
. Maybebad_tags.include([ternary-operator])
? \$\endgroup\$bad_tag
as a constant can be compared to any other tag \$\endgroup\$