ciren / cilib

Typesafe, purely functional Computational Intelligence
https://cilib.net
Apache License 2.0
124 stars 101 forks source link

Use `zio-optics` and remove comments #325

Closed gpampara closed 2 years ago

gpampara commented 2 years ago

Some much needed cleanup on the code and drop the custom Lens implementation in favour of just using the zio-optics library.

One caveat of the optics library is that it caters for failures in the lenses, which I've never seen before, and requires that the OpticResult be unwrapped in specific places within the code. This is not an issue, but creates slightly more code at the call-sites.