Another positive for Enums is that if you add a 3rd state, theres a lot less work to do compared to a boolean as it only has 2 options.
Also there shouldn’t be a performance hit. As your code runs, the program will assign each state an integer value. Thus any assigning/comparing states is easy.
March 22, 2025 at 2:19 PM
Another positive for Enums is that if you add a 3rd state, theres a lot less work to do compared to a boolean as it only has 2 options.
Also there shouldn’t be a performance hit. As your code runs, the program will assign each state an integer value. Thus any assigning/comparing states is easy.