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

Remove simple_sequence #200

Merged
merged 1 commit into from
Aug 15, 2024
Merged

Remove simple_sequence #200

merged 1 commit into from
Aug 15, 2024

Conversation

tcbrindle
Copy link
Owner

This was added very early in the life of Flux with the intention of making it easy to write Flow-style (or Rust-style) iterators with just a next() -> optional method.

It works fine, but it's not particularly useful -- if you're doing a quick prototype then flux::generator is quicker and easier, and otherwise a "full" sequence implementation isn't much more work and usually gets you multipass for free.

So given that it's not useful and it's not used anywhere, let's get rid of it.

This was added very early in the life of Flux with the intention of making it easy to write Flow-style (or Rust-style) iterators with just a `next() -> optional` method.

It works fine, but it's not particularly useful -- if you're doing a quick prototype then `flux::generator` is quicker and easier, and otherwise a "full" sequence implementation isn't much more work and usually gets you multipass for free.

So given that it's not useful and it's not used anywhere, let's get rid of it.
Copy link

codecov bot commented Aug 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.30%. Comparing base (0ebf699) to head (14effc2).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #200   +/-   ##
=======================================
  Coverage   98.30%   98.30%           
=======================================
  Files          70       70           
  Lines        2471     2471           
=======================================
  Hits         2429     2429           
  Misses         42       42           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tcbrindle tcbrindle merged commit 5464ea3 into main Aug 15, 2024
37 checks passed
@tcbrindle tcbrindle deleted the pr/remove-simple-sequence branch August 15, 2024 16:31
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