Timeline for How can I avoid tons of if/else statements dealing with settings?
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 1, 2023 at 21:55 | comment | added | Vaillancourt♦ | @TrangOul You're right. Without more details about the user's situation, it's difficult to provide the best solution to their issue. | |
Feb 28, 2023 at 18:50 | comment | added | Trang Oul | The state classes hierarchy is hardly ideal. With 2 settings you need 1 additional subclass. With 3 settings you'd need 4 (AB, AC, BC, ABC), with 4 settings 11 subclasses (2^4 - 1 - 4) and so on... | |
Aug 8, 2015 at 14:39 | history | answered | Vaillancourt♦ | CC BY-SA 3.0 |