The note on this page says it was put into the `ar...
# arrow
g
The note on this page says it was put into the
arrow-meta
repo, does anyone know whether this went anywhere? Would love to have proper pattern matching in Kotlin -- even Java has it now! 😅 https://mattmoore.io/kotlin-pattern-matching
r
Hi @Gavin Ray I think it refers to https://github.com/arrow-kt/arrow-meta/tree/pattern-matching . That has been stale for quite a while now but @mattmoore may know more.
m
Hi Raul and Gavin! Yes that original branch went stale. There were many changes going on within the Kotlin compiler internals at the time and I had been working more in Scala around that time as well. But now I am working now in Kotlin daily so have been thinking about looking into this again. Seems there may be some interest in this so I think I might resurrect this again as I find myself wanting proper pattern matching in Kotlin almost daily now 🙂
g
Maybe the new K2 compiler and analysis API's + Arrow analysis API's might be helpful for this as well?
r
K2 and FIR can be used but be aware is not planned to be stable until after Kotlin 1.9 or so AFAIK.