3 ms·
The Java implementations are typically better than their counter parts. See Kotlins when vs switch expressions in Java.
by vips7L 7y ago
The Java implementations are typically better than their counter parts. See Kotlins when vs switch expressions in Java.
- nickbauman 7y agoKotlin's optional implementation is much better tho. It's not a universal.
- s-km 7y agoWhat about switch expressions in Java is better than Kotlin's when? I haven't personally used switch expressions in Java yet, but I've read the JEP and I don't see anything special or interesting.