Skip to content

fix(switch): evaluate argument only once#55

Merged
SuperFola merged 1 commit intomasterfrom
fix/54
Mar 22, 2026
Merged

fix(switch): evaluate argument only once#55
SuperFola merged 1 commit intomasterfrom
fix/54

Conversation

@SuperFola
Copy link
Copy Markdown
Member

@SuperFola SuperFola commented Mar 22, 2026

This uses a new macro ($gensym) that will be introduced in ArkScript 4.5.0.

Closes #54.

@SuperFola SuperFola changed the title fix(switch): evaluate argument only once (closes #54) fix(switch): evaluate argument only once Mar 22, 2026
@SuperFola
Copy link
Copy Markdown
Member Author

CI will fail on std/master, but will work on Ark/dev, and we need this for the v4.5.0, so I'm still merging it

@SuperFola SuperFola merged commit 7eb3f2a into master Mar 22, 2026
3 of 4 checks passed
@SuperFola SuperFola deleted the fix/54 branch March 22, 2026 15:25
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.

switch macro evaluates the match value multiple times

1 participant