Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure strictness in the state in modify'. #13

Merged
merged 1 commit into from
Jul 24, 2017

Conversation

kantp
Copy link

@kantp kantp commented Jun 5, 2014

The old implementation of modify' used state f with a function f that was strict in the new state. However, in state itself, f is applied to the state in a non-strict way, so the strictness is lost.

The implementation suggested here should ensure that the state is evaluated.

The old implementation of modify' used state f with a function f that was strict in the new state.  However, in state itself, f is applied to the state in a non-strict way, so the strictness is lost.

The implementation suggested here should ensure that the state is evaluated.
@RyanGlScott
Copy link
Member

Well spotted. I've merged this, and tweaked the implementation to be more similar to the one in transformers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants