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

Generate the identity when running generate(a,a) #28

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

blottn
Copy link

@blottn blottn commented Jan 22, 2024

According to the RFC, apply(a, {}) is a noop. However when running generate(a,a) the output is undefined. This is undesirable since then the result of doing apply(a, generate(a,a)) is not a.

This patch updates the function generate to instead return {} in cases where nothing should be changed.

This also changes the result of some tests. I have updated the tests to expect the new result but I that this likely results in breaking changes for users.

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.

1 participant