This article is overdue. After the hype around the release of Kotlin 1.0 has settled, let's have a serious look at some Kotlin language features that we should have in Java as well. In this article, I'm not going to wish for unicorns. But there are some low hanging fruit (as far as I naively … Continue reading 10 Features I Wish Java Would Steal From the Kotlin Language
Tag: map literals
Array, list, set, map, tuple, record literals in Java
Occasionally, when I'm thrilled by the power and expressiveness of JavaScript, I find myself missing one or two features in the Java world. Apart from lambda expressions / closures or whatever you want to call "anonymous functions", it's the use of advanced literals for common data types, such as arrays, lists, sets, maps, etc. In … Continue reading Array, list, set, map, tuple, record literals in Java