Short-circuiting &&
#20
jaredkrinke
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to have short-circuiting behavior for
&&
, so you can write a single expression that, say, checks array bounds and only if in-bounds checks an element:Today, if
index
is>= vec.size
, the code above will abort because the second clause always runs.Beta Was this translation helpful? Give feedback.
All reactions