Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
vips7L
· 6y ago · 0 comments
The Java implementations are typically better than their counter parts. See Kotlins when vs switch expressions in Java.
Comments
[–]
nickbauman
6y ago
Kotlin's optional implementation is much better tho. It's not a universal.
[–]
s-km
6y ago
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.