3 ms·
> Is that understandable to you? Of course using lens in Java is going to have compromises and nothing is going to beat Haskell in readability for this kind of
by kccqzy 8y ago
> Is that understandable to you?
Of course using lens in Java is going to have compromises and nothing is going to beat Haskell in readability for this kind of programs. As you pointed out, Java is verbose and that hurts the readability a lot.
> And does this really make solving some problems easier?
Whether this makes solving problems easier, I would say in Haskell, I routing compose half a dozen of optics to do a fold or update and it really makes things easier. I haven't read this Java version so I don't know whether the power-to-weight ratio here is similar.