Skip to content

Conversation

@calda
Copy link
Member

@calda calda commented Dec 11, 2025

As much as I like this change at a high level, in reality it causes too many errors.

The updated code will fail to compile if the collection or sequence doesn't support being initialized with the [] empty array initializer. I tried to find heuristics to make this work well enough, but it still has a 5-10% error rate, which it too high.

@calda calda enabled auto-merge (squash) December 11, 2025 21:56
@calda calda merged commit 7d0d58c into master Dec 11, 2025
6 checks passed
@calda calda deleted the cal--optional-for-each branch December 11, 2025 21:58
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