So be sure to ponder your reasons when choosing the ternary operator.
所以在挑选三元运算符时,请务必权衡一下利弊。
This new operator is, in fact, a shortcut notation for the ternary operator.
这个新操作符实际上是一个三目操作符的便捷记法。
For Java developers, this is exactly the way the ternary operator — the? : expression — works.
表达式——的工作方式。
应用推荐