1 bool vs 2 bools

Hi, as a few people have written in this lecture’s discussion you can achieve the desired effect with a single boolean flag. The code seems way more complicated and error-prone with two flags. So what are the advantages of using two booleans instead of one?

The advantage is you get to shame me because I didn’t catch this reviewing Mike’s code :sweat_smile:. One bool is definitely the way to go.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms