Skip to content

FLIP 359: For-in Iteration Over Dictionary Keys#360

Merged
turbolent merged 2 commits intomainfrom
bastian/359-for-in-dictionary-keys
Mar 10, 2026
Merged

FLIP 359: For-in Iteration Over Dictionary Keys#360
turbolent merged 2 commits intomainfrom
bastian/359-for-in-dictionary-keys

Conversation

@turbolent
Copy link
Member

Work towards #359

Copy link
Member

@joshuahannan joshuahannan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will be great to have!

@bluesign
Copy link
Collaborator

bluesign commented Mar 2, 2026

Direct dictionary iteration avoids allocating an intermediate [K] array of keys (as dict.keys does), which may be beneficial for large dictionaries.

I think this is alone enough benefit to have this.

@turbolent
Copy link
Member Author

There has been no negative feedback, this FLIP has been accepted

@turbolent turbolent merged commit f8e9465 into main Mar 10, 2026
@turbolent turbolent deleted the bastian/359-for-in-dictionary-keys branch March 10, 2026 20:34
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.

3 participants