Replies: 2 comments 2 replies
-
I don't think there's necessarily a reason. I suppose I write a lot of python in my free time, so I write the if/else's instinctively, but those samples I think predate my tenure on the project 😅 Any reason you're asking? |
Beta Was this translation helpful? Give feedback.
2 replies
-
To sum it up, if number of conditions is more than 5 or so, prefer SWITCH over IF, otherwise use whatever looks better. more info : https://stackoverflow.com/a/395965/10233323 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I guess
terminal/src/host/CommandNumberPopup.cpp
Lines 135 to 148 in 11b810e
terminal/src/host/ConsoleArguments.cpp
Lines 435 to 470 in 11b810e
terminal/src/host/ConsoleArguments.cpp
Lines 478 to 533 in 11b810e
terminal/src/inc/til/string.h
Lines 16 to 23 in 11b810e
make some sense but
terminal/src/tools/echokey/main.cpp
Lines 56 to 173 in 11b810e
terminal/src/propsheet/ColorControl.cpp
Lines 7 to 26 in 11b810e
?
Beta Was this translation helpful? Give feedback.
All reactions