Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ternary operator is not lazy #3330

Closed
simonvonhackewitz opened this issue Jul 8, 2024 · 0 comments · Fixed by #3404
Closed

Ternary operator is not lazy #3330

simonvonhackewitz opened this issue Jul 8, 2024 · 0 comments · Fixed by #3404
Labels
base library related to the Fuzion base library bug Something isn't working Fuzion language related to the language, syntax, etc

Comments

@simonvonhackewitz
Copy link
Contributor

The following example

dbg bool := true
dbg ? (say "debug is enabled") : (say "debug is disabled")

produces this output

debug is enabled
debug is disabled

See also the design page Matches in Expressions

@michaellilltokiwa michaellilltokiwa added bug Something isn't working base library related to the Fuzion base library Fuzion language related to the language, syntax, etc labels Jul 9, 2024
@maxteufel maxteufel linked a pull request Jul 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
base library related to the Fuzion base library bug Something isn't working Fuzion language related to the language, syntax, etc
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants