27 ms·
Ugh fucking finally. Too many hours wasted learning the complexities and template macro nonsense of lenses. I am so elated to see this change, even if it is 15
by Lambdanaut 6y ago
Ugh fucking finally. Too many hours wasted learning the complexities and template macro nonsense of lenses.
I am so elated to see this change, even if it is 15 years overdo. Nested selectors in particular are beautiful.
Maybe it's time again to do me some haskell for great good.
- prof-dr-ir 6y agoCould you explain why you think this proposal would help you avoid lens? If I am not mistaken all of the above code can easily be rewritten in the old syntax without using lens, so you probably have another use case in mind?
- deleted 6y ago[deleted]
- johnday 6y agoIt is very cumbersome to write nested updates using the old syntax, and overlapping names between records was quite painful to deal with.