Skip to content

[ContainersPreview] Rename Producer.generateNext() to next()#599

Merged
lorentey merged 1 commit intoapple:mainfrom
lorentey:generateNext-to-next
Mar 9, 2026
Merged

[ContainersPreview] Rename Producer.generateNext() to next()#599
lorentey merged 1 commit intoapple:mainfrom
lorentey:generateNext-to-next

Conversation

@lorentey
Copy link
Member

@lorentey lorentey commented Mar 9, 2026

This better highlights the symmetry between it and the classic method on IteratorProtocol, and is also a nice usability win.

Checklist

  • I've read the Contribution Guidelines
  • My contributions are licensed under the Swift license.
  • I've followed the coding style of the rest of the project.
  • I've added tests covering all new code paths my change adds to the project (if appropriate).
  • I've added benchmarks covering new functionality (if appropriate).
  • I've verified that my change does not break any existing tests or introduce unexplained benchmark regressions.
  • I've updated the documentation if necessary.

This better highlights the symmetry between it and the classic method on `IteratorProtocol`, and is also a nice usability win.
@lorentey lorentey requested a review from stephentyrone March 9, 2026 23:23
@lorentey lorentey added this to the 1.4.1 milestone Mar 9, 2026
@lorentey lorentey merged commit 63030a3 into apple:main Mar 9, 2026
39 checks passed
@lorentey lorentey deleted the generateNext-to-next branch March 9, 2026 23:38
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