Re:Removing Garbage Collection from the Rust Language (2013)
by richbell on Monday September 11, 2023 @08:00AM
(#37465958)
It's unfortunate that Kotlin lacks pattern matching, especially now that Java has it. I can only hope that the release of the new compiler will spur further language features.
[ Parent
| on HN ]
Re:Removing Garbage Collection from the Rust Language (2013)
by simonkagedal on Monday September 11, 2023 @03:05PM
(#37472127)
What kinds of pattern matching that Java now has is Kotlin missing?
Re:Removing Garbage Collection from the Rust Language (2013)
by richbell on Monday September 11, 2023 @03:52PM
(#37472711)
At the moment Kotlin only has smart casts and exhaustive type checking (e.g., making sure you didn't forget a switch case). It doesn't let you destructure records, add guards to cases, etc.