Skip to content

Document multi-iterator for loops - #591

Draft
SeanTAllen wants to merge 1 commit into
mainfrom
multi-iterator-for-tutorial
Draft

Document multi-iterator for loops#591
SeanTAllen wants to merge 1 commit into
mainfrom
multi-iterator-for-tutorial

Conversation

@SeanTAllen

Copy link
Copy Markdown
Member

ponyc#5896 adds multi-iterator for loop sugar. This adds a "Multiple iterators" subsection to the For section of the control structures tutorial, covering the destructured binding form, single-name binding, shortest-iterator semantics, and the desugared while-loop equivalent.

Draft until ponyc#5896 is released.

@netlify

netlify Bot commented Aug 29, 2026

Copy link
Copy Markdown

Deploy Preview for pony-tutorial ready!

Name Link
🔨 Latest commit 5ee0902
🔍 Latest deploy log https://app.netlify.com/projects/pony-tutorial/deploys/6a9326918bf4c30008482e4e
😎 Deploy Preview https://deploy-preview-591--pony-tutorial.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Aug 29, 2026
@SeanTAllen SeanTAllen mentioned this pull request Aug 29, 2026
3 tasks
ponyc#5896 adds sugar for iterating multiple collections in a single
for loop. This covers the destructured binding form, shortest-iterator
semantics, and the desugared while-loop equivalent.
@SeanTAllen
SeanTAllen force-pushed the multi-iterator-for-tutorial branch from c23f2f1 to 5ee0902 Compare August 29, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

discuss during sync Should be discussed during an upcoming sync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants