Skip to content

chore(bake): use collect pattern when possible#415

Closed
jaudiger wants to merge 2 commits intomainfrom
extend-pattern-3
Closed

chore(bake): use collect pattern when possible#415
jaudiger wants to merge 2 commits intomainfrom
extend-pattern-3

Conversation

@jaudiger
Copy link
Contributor

Similar to #413, but around collect pattern.

@jaudiger jaudiger requested a review from kylewlacy January 27, 2026 19:53
@jaudiger jaudiger self-assigned this Jan 27, 2026
Signed-off-by: Jérémy Audiger <jeremy.audiger@icloud.com>
…matic

Signed-off-by: Jérémy Audiger <jeremy.audiger@icloud.com>
Copy link
Member

@kylewlacy kylewlacy left a comment

Choose a reason for hiding this comment

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

I feel pretty similar with this as I do about #415. I'm a big fan of iterator chaining, but I think for loops have their place. Generally I don't feel strongly enough in one director or the other to accept/reject a PR purely because it does/doesn't use iterator chaining, but in this case, I lean pretty strongly towards for due to the side effects around .insert()

@kylewlacy kylewlacy closed this Jan 29, 2026
@jaudiger jaudiger deleted the extend-pattern-3 branch January 30, 2026 19:27
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.

2 participants