Reasons to not add the ternary operator:
- It doesn’t add any new functionality
- If-expressions work okay as they are now
- It can lead to unclear code when chaining ternaries
- It can lead to unclear code when using long expressions
- It is difficult to understand for those new to programming
- It clashes with Nullability’s use of the question mark
- It clashes with potential uses of the colon
- The minus 100 point rule
Reasons to add the ternary operator:
- It’s more concise (shorter character-wise)
- It’s expected by users coming from other languages
- It’s understood by users coming from other languages
- It does not clash with Nullability’s question mark (see other languages)
- It doesn’t limit other future uses of the colon
Reasons to end the fun:
- Fun is fun
- Fun is done
- This topic: https://discuss.kotlinlang.org/t/please-close-the-mega-topics-ternary-and-companion-objects/
- Nothing would be as fun as seeing these two topics closed