Short circuit semantic in bool expression #1625
pmqtt
started this conversation in
Language design
Replies: 3 comments 4 replies
-
I am pretty sure, this feature will be implemented eventually as the language aims to achieve the performance of C++ and this would be a considerable optimization path. As an early adopter, I would not rely on the current implementation, because implementing short-circuiting would cause a behavior change in this regard. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! Filed as #1651 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Short-circuit semantics should not be implicit. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello folk,
I don't know that short circuit is the reight word for this kind of expression in a if statement:
I think the reight semantic is that "HALLO World" will never printed! But In the current implementation the test function is always called.
Beta Was this translation helpful? Give feedback.
All reactions