It’s not just for a few lines. It’s so mistakes like this don’t happen. It’s important to fully understand the flow of the program. The way I wrote it is more explicit and is less likely to cause others to make this mistake. But also, it depends on the context, such as whether condition1 and/or condition2 are edge cases and whether the negation of condition1 makes sense.
772
u/dyingpie1 Apr 17 '21
I would rewrite it as