Skip to content
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

Idea: Applicative functor? #1

Open
lbfalvy opened this issue Oct 30, 2022 · 1 comment
Open

Idea: Applicative functor? #1

lbfalvy opened this issue Oct 30, 2022 · 1 comment

Comments

@lbfalvy
Copy link

lbfalvy commented Oct 30, 2022

This is a great crate, I've been using it extensively in my project to derive partially modified trees with minimal cloning. It is easily my favourite crate so far. That being said, I've been really missing the aiblity to derive a value from multiple Mrc instances, in a similar fashion to Haskell's applicative typeclass.

I realize that this isn't something reference counting pointers commonly support, so it may be out of scope for this project, but I think it would be a convenient addition so if you agree I'd happily introduce it into this crate. Alternatively, I would have to add mappable-rc's functionality to my crate, bound which encapsulates just the act of deriving an object from a reference to another, and was originally designed to enable persisting lock guards. It is currently possible to achieve the desired effect by using the two crates together, but it's very inefficient and requires a fair bit of boilerplate.

@JakobDegen
Copy link
Owner

I'm having trouble understanding the request. Can you give me a code example of what you're trying to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants