-
Notifications
You must be signed in to change notification settings - Fork 19
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
from Setfield to Accessors #151
Comments
There is none, optics are duck-typed: julia> @optic _
identity (generic function with 1 method)
julia> @optic(_) === identity
true It is the identity function. |
I see. To emulate a supertype, what do you think of
|
Depends on what the goal is. In the same way that I would usually prefer |
Probably |
mostly to help the user. I am so used to Setfield, I have to adapt to your new framework. |
Hi,
I want to switch from
Setfield
toAccessors
. However I dont know the supertype of @opticCan anyone give me a hint please?
The text was updated successfully, but these errors were encountered: