Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Odomontois
Copy link

@Odomontois Odomontois commented Apr 2, 2020

This is a proposal for more general than fold transformer for ZRef named focusFold with lens-like interface.
Such a transformer can focus mutable access on individual components of product types, such as case classes and collections.
Changes overview:

  • added abstract method focusFold, which can analyze old read value during an update.
  • added third variant of ZRef named Focused which has worse performance in general than previous Derived .
  • Derived renamed to Mapped and now extends Focused to reduce code repetition

@CLAassistant
Copy link

CLAassistant commented Apr 2, 2020

CLA assistant check
All committers have signed the CLA.

@adamgfraser
Copy link
Contributor

Ah funny I have been working on something similar. Will post my current version as well.

@jdegoes
Copy link
Member

jdegoes commented Apr 2, 2020

@Odomontois @adamgfraser Great minds think alike. 😆

Glad to see this development finally happening. it was the main reason for the ZRef refactoring.

I'll let you two figure out how to merge these ideas and do a review when you're ready.

@jdegoes
Copy link
Member

jdegoes commented Apr 10, 2020

Closed in favor of the hybrid #3258. @Odomontois Thanks for your work on this one!

@jdegoes jdegoes closed this Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants