I wanted to thank all those who helped with this e...
# pattern-matching
m
I wanted to thank all those who helped with this earlier this year. I learned a lot from that experience! I wanted to share a quick status update: It’s been a while since I’ve been able to come back to this. But I have started back on it again with Kotlin 1.4 and Meta 0.11.0. Started working through the code we have so far and at a high level there are 2 things I’m working towards in spare time: 1. Obviously, the new compiler changed things. I’m looking at the latest compiler source (and latest Meta) to get a sense for deprecations. I’ve made some decent progress on this, but it’s still heavily in progress. 2. Some of the code had gotten a little dependent on
when
- but we want matching to be decoupled from that. So I’m inverting the process to start with the
case
synthetic as the starting point, and attempting to only traverse up or down the tree if it’s necessary to do so - but currently I don’t think it will be necessary. This would ensure that
case
is adaptable outside of
when
. I’m not sure precisely when I’ll have code fully ready to share as this year has gotten incredibly busy. But I will have some more time freeing up in the next few weeks to devote more time to this and hopefully have an initial prototype working perhaps some time this year/early next on the latest Kotlin/Meta. I’ll probably be in the #arrow-meta and #compiler channel as well asking questions there about new compiler design at some point.
👍 2