News for hackers. Stuff that matters.
Re:Java Feature Spotlight: Text Blocks by vips7L on Friday May 01, 2020 @10:29AM (#23042304)
The Java implementations are typically better than their counter parts. See Kotlins when vs switch expressions in Java.
Re:Java Feature Spotlight: Text Blocks by nickbauman on Friday May 01, 2020 @10:37AM (#23042387)
Kotlin's optional implementation is much better tho. It's not a universal.
Re:Java Feature Spotlight: Text Blocks by s-km on Friday May 01, 2020 @11:28AM (#23042969)
What 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.