I am not fan of oo as synonym for compose and I don't like that we need to define a new operator to create an AppliedLens (>-), AppliedTraversal (>--) and so on.
I am thinking of using >> instead oo, so it will look like
Person("Roger", Address(10, "Great street")) >- address >> streetNumber get == 10
and >>L as an alias for lensCompose. I still don't have a good idea to replace >- and >--
#16 - Propose new syntax using an operator per main concept (Lens, Tr…
I just updated syntax for lens, traversal, iso and prism. Now there is one operator for each that has an overloaded meaning:
Here are the four operators:
Still need to find some for Getter, Setter and Fold.
I don't think sure it is worth to have an alias for Getter, Setter and Fold composition as they will probably be used less often than Lens and Traversal.