Our great sponsors
-
scala
Scala 2 compiler and standard library. Bugs at https://github.com/scala/bug; Scala 3 at https://github.com/scala/scala3
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Some programming languages don't even have the ternary operator. For example, in Scala, the ternary operator does not exist; instead, an if...else or match...case block can be used as an expression ("Everything's an expression"). In my opinion, programming languages that offer this give the best of both worlds, but if I'm using a programming language that does not have this feature, I opt for if...elses instead of nested ternary expressions or at least use indentation that makes the terms clearer.