-
Notifications
You must be signed in to change notification settings - Fork 14
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
decouple flattening and transformations #13
Comments
Also related: https://github.com/oschulz/ShapesOfVariables.jl |
Forgive me to suddenly drop a slightly ad-like comment here. I just thought it could be a useful information. For nested (especially immutable) objects, I think Lens API from Setfield.jl is worth considering. Setfield.jl itself has no direct support for flattening (by that, I mean getting/setting multiple fields together) but I just created a package (Kaleido.jl) that does that. It also has a basic interop for TransformVariables.jl. Setfield.jl/Kaleido.jl lack in-place operations at the moment so I guess it's probably not possible to directly cover all use-cases in TransformVariables.jl. But I think it is possible to implement "impure" lenses. See also jw3126/Setfield.jl#32 |
@tkf: I appreciate the heads-up. I like your packages very much and I will look at Kaleido.jl. |
Another package for this is https://github.com/oschulz/ValueShapes.jl |
Use separate building blocks for
Transformations should
dimension
,Transformations should be generic, eg going from
StaticArray
should also produceStaticArray
.Flattening/unflattening should use schemas, possibly nested.
The text was updated successfully, but these errors were encountered: