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.
https://www.infoq.com/articles/pattern-matching-for-switch/