3 ms·
Are they trying to make Scala look more complicated than the other languages on purpose? The Scala example f"$x%d plus $y%d equals ${x + y}%d" could be written
by lanna 4y ago
Are they trying to make Scala look more complicated than the other languages on purpose? The Scala example f"$x%d plus $y%d equals ${x + y}%d" could be written simply as s"$x plus $y equals ${x + y}"
- geodel 4y agoYes, Java is legit scared of Scala's rising popularity.
- AtlasBarfed 4y agoIf anything Java is becoming groovy. Almost all features adopted are groovy features.
- oblio 4y agoIs Scala rising? It used to be hyped a ton back in the earlier Twitter days, about 10 years ago, but since then, everything has been quiet. If anything, Kotlin is probably ahead of Scala now, adoption wise.
- avgcorrection 4y agoWait. Did we just get teleported back to 2018?
- isbvhodnvemrwvn 4y agoSarcasm carries poorly over text :)
- ndriscoll 4y agoIt's funny too because the Scala ecosystem has had safe string interpolation for years. e.g. with Slick sql"SELECT * FROM Person p WHERE p.last_name = $lastName" will produce a parameterized query/prepared statement that you can run, and it does this at compile time so runtime injection like log4shell is impossible.
- optician_owl 4y agoOne of the best application I've seen is structured and contextual logging [1]. Combined with implicits, this allows you to require a right renderer or/and automatically get a current state of an execution context. 1. https://docs.tofu.tf/docs/tofu.logging.key-features/ https://docs.tofu.tf/docs/tofu.logging.key-features/