Re:Reflecting on Haskell in 2016
by axman6 on Monday December 26, 2016 @02:59AM
(#13257427)
On the contrary, lenses are far more powerful than what's available in JavaScript and all other OO languages. Traversals and Prisms give so much power that's lacking in OO
[ Parent
| on HN ]
I don't see how that's contrary to what the parent said.
I guess that my point was that for the situations where the built in syntax in OO languages is used, the lens alternative is usually at most about 2 characters longer, which is hardly more inconvenient.
That's a point, just one that was entirely missing from your previous comment.
That said, it's not just use. You've also gotta deal with some additional imports, and with defining your lenses. For the simplest case, that's a bit of overhead compared to having it all baked in.