Skip to content

Isolate variable types across case/when branches#423

Merged
mame merged 1 commit intoruby:masterfrom
mame:case-when-isolation
Apr 7, 2026
Merged

Isolate variable types across case/when branches#423
mame merged 1 commit intoruby:masterfrom
mame:case-when-isolation

Conversation

@mame
Copy link
Copy Markdown
Member

@mame mame commented Apr 7, 2026

Variables modified in one when branch no longer leak into other branches. Each branch starts from the original variable state, and all branches are joined after the case statement, similar to how if/unless handles variable branching.

Variables modified in one when branch no longer leak into other
branches. Each branch starts from the original variable state, and
all branches are joined after the case statement, similar to how
if/unless handles variable branching.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mame mame merged commit b9c3cd3 into ruby:master Apr 7, 2026
6 checks passed
@mame mame deleted the case-when-isolation branch April 7, 2026 09:09
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