-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Correct way to reconstruct an instance of an object #3
Comments
There are a couple of ways to handle this situation. Overloading There are a couple of other ways. First, you can just ignore Another option is to create a wrapper around Hope that helps; unfortunately it's a bit use-case-dependent but I'd be happy to look at what you're doing in more detail if that would be useful. |
Sounds good to me. It was more that I just want to know what the options are / whether any are actively discouraged. Any chance some of this advice might appear in the readme? |
Might be useful to quickly link these issues in the readme/code? |
Resolved by #4 |
Would it make sense to move |
Would it make sense to change |
The following (unsurprisingly) yields an error:
You can imagine this kind of thing cropping up, where only a subset of the fields of an object are considered "parameters", but you do need to have access to the others to make an instance of the object.
Is the intended way to handle this to define my own method of
functor
as follows:?
The text was updated successfully, but these errors were encountered: