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

Mutate stream returns to Stream.empty #946

Merged
merged 1 commit into from
Oct 12, 2021
Merged

Conversation

hcoles
Copy link
Owner

@hcoles hcoles commented Oct 12, 2021

Previously stream returns were mutated to null. This was inconsistent
and resulted in less stable mutations. Special handling was also needed
to filter out null returns used only in flatMaps, as these acted like
stream.empty.

Mutating to Stream.empty is simpler and results in more useful mutations
that are harder to detect.

Previously stream returns were mutated to null. This was inconsistent
and resulted in less stable mutations. Special handling was also needed
to filter out null returns used only in flatMaps, as these acted like
stream.empty.

Mutating to Stream.empty is simpler and results in more useful mutations
that are harder to detect.
@hcoles hcoles force-pushed the feature/mutate_to_empty_stream branch from 2682c9e to e726b4e Compare October 12, 2021 11:55
@hcoles hcoles merged commit 8ee255a into master Oct 12, 2021
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