Conversation
|
👏 |
|
|
|
I wonder whether a better name for |
|
I like @googleson78's realization about what |
|
guess I'm unclear about why it's called |
|
I guess this is the reason 😄 |
|
I see 🙃 I would argue that the name |
KingoftheHomeless
left a comment
There was a problem hiding this comment.
Like magic!
I don't like the names. Something like raiseGeneral and subsumeGeneral would be better.
I'm also slightly concerned about the performance characteristics, but if they turn out to be bad, we can revert the definitions of raiseUnder and subsume and friends to their earlier definitions at a later points.
|
Actually, wait. We don't need this, do we? The |
|
We can't change When it comes to names, I would prefer something short - that |
|
Oh, well that's fine then. I'd prefer |
googleson78
left a comment
There was a problem hiding this comment.
I was also thinking whether the typeclasses would be an issue, but I'm hoping that if you use the concrete versions there won't be any (additional) dictionary passing?
|
Even in case with polymorphic "tail", that typeclass duo should resolve into concrete instance - and GHC is really good at inlining instances (see Generics). |
why? isn't |
…polysemy into raise-subsume
|
@tek I would say that depends a lot on context - and in this context connection to |
|
Can be considered ready? |
KingoftheHomeless
left a comment
There was a problem hiding this comment.
I consider it so.
Regarding _ vs ': ''s also got a convention, namely, strictness. Neither convention is universally observed: for example, mask_ isn't a void-ed version of mask.
See https://funprog.srid.ca/polysemy/raiseunder-and-multiple-effect-interpretation.html and #369.