I did actually play around with it yesterday, though I'm not at all surprised it doesn't work... ;) I wanted to spend a bit longer trying to understand it, though...
-
-
Replying to @propensive
Ahah. I'm not sure I am all that surprised myself. Having that compile would have been a pleasant surprise
1 reply 0 retweets 0 likes -
Replying to @skaalf
By the way, did you have anything in mind when you added `extends Format` to the enum case definition?
1 reply 0 retweets 0 likes -
Replying to @propensive
Not really. I suppose I did it out of habit from Scala 2.
1 reply 0 retweets 1 like -
Replying to @skaalf
There are basically just a few too many things going on here: - dependent function type - curried function - match type - partial function - beta reduction - eta expansion and I think the recognition of valid implementation of a match type isn't tenacious enough to keep looking.
2 replies 0 retweets 0 likes -
Replying to @propensive
I looked into this a little bit more and made *some* progress. Things are a bit weird and I'm leaning toward a bug now:pic.twitter.com/nj724s8Oky
1 reply 0 retweets 0 likes -
Replying to @skaalf
This looks just like a straight dealiasing error now. But there's still enough complexity involved that I'm not surprised... the type match requirements as documented, IIRC, don't cover the case when the match type is used as a type parameter in the match expression...
1 reply 0 retweets 0 likes -
Replying to @propensive
So it's not supposed to be supported? The line between what works and what doesn't feel very arbitrary here.
1 reply 0 retweets 0 likes -
Replying to @skaalf
I'm not sure. Recursive match types work, which is more of a surprise to me (but maybe they're a more motivating example, so have had more attention). But generally speaking, it seems like it's the most advanced new features that are most problematic.
1 reply 0 retweets 0 likes -
Replying to @propensive
yeah it seems that trying to port an example from Idris was a very good way to raise all kinds of questions about the compiler
1 reply 0 retweets 1 like
-
-
Replying to @propensive
Absolutely not intended so I'll credit this one to you
0 replies 0 retweets 1 likeThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.