Style/efficiency: expects vs boolean expression at the end? #552
-
I'm not sure whether things are evaluated call-by-value, call-by-need, or something else, and whether trying to short-circuit computations is a good idea. I prefer doing something like:
but psychologically I'm worried that this is more efficient
Is there maybe a performance/style guide, or does this all compile to the same code? |
Beta Was this translation helpful? Give feedback.
Answered by
MicroProofs
May 30, 2023
Replies: 2 comments
-
cc @MicroProofs |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would do is_cond1 && |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
eddiemundo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would do is_cond1 &&
is_cond2 &&
is_cond3