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
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
Gavin Ray
08/30/2022, 6:26 PM
Maybe the new K2 compiler and analysis API's + Arrow analysis API's might be helpful for this as well?
r
raulraja
08/30/2022, 9:13 PM
K2 and FIR can be used but be aware is not planned to be stable until after Kotlin 1.9 or so AFAIK.