I’m really confused about the pattern-matching concept. I read in mutiple places that kotlin does not support pattern matching (last example I’ve read is this Arrow issue).
However, When looking at this document by M. Goetz talking about possible pattern matching in Java, It looks to me that Kotlin already supports all of the described patterns.
If I look at Scala documentation, it looks like only pattern guards are not supported currently.
So, I don’t understand what “Kotlin does not support pattern matching” statement means. Can someone explain it to me please ? Does it mean "some kind of advanced " pattern matching is not supported, as this keep proposal ?
Any examples of pattern-matching known limitations in Kotlin, and solutions provided by other languages are welcome