Closed wallymathieu closed 6 years ago
I don't think we need to change to Result to implement F#+ lenses.
However it would make sense for this library to switch to Result, but IMHO we should treat it as a separate issue.
Yes, that makes sense.
I'll fix it after the next f#+ release
We need to verify that usage of the lenses doesn't cause to much of a slowdown when used.
If they do so, it may be worth exploring other lens implementations, based on Data.Lens and add PR to F#+ to a different namespace.
I'm not sure lenses are needed as much for JSON data, since the format is inherently mutable.
I think there are valid scenarios for lenses here. Anyway I'm not sure if Control Lenses are really needed.
As Json is dynamic, we might not need polymorphic updates.
But, then the first step would be to create Data.Lenses, possibly with the same interface (operators, functions and lenses).
Sounds like a plan 😄
It would be nice of you could mix them somehow?
The compilation cost of lenses are now negligible! Awesome work @gusty !
Compilation times:
Additional tests needed
Starting to port lenses from lens-aeson
Note: Depends on pre release version of f#+