-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monadic Interfaces #229
Comments
I like the concept a lot, since it lets us have more generality. I'd recommend looking at the difference in code gen at a core level to see whether we're taking a performance hit even though we're using Identity |
We also need to think about how this would break backwards compatibility as well as the fact that many structures wouldn't have monadic implementations like this. Would we remove the pure versions from the classes and implement them in terms of the Monadic, or have both and define them in terms of each other? Would this mean eg updateMap wouldn't be defined with updateWithKey? Or do we keep the hierarchies as they are? |
I do not think that we can break the interface. Existing classes can have a monadic class added to them with the For future classes depending on what makes the most sense, we can require that either
|
I'm not sure if this is a good idea or not but I have been thinking about monadic interfaces and the pure interface can just use
Identity
to use the monadic instance or theRULES
pragma for the specific type function. ExampleThe text was updated successfully, but these errors were encountered: