-
-
Notifications
You must be signed in to change notification settings - Fork 732
switch...case reference confusing #830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A few points:
|
Regarding (1, "mention including stdint.h"), you will have to keep the intended audience in mind; it's beginners in the language and they don't really care. I would prefer the format to be that of Linux man pages ;) Regarding (4), there is no fall-through example so the point is a little moot. It's also the user's responsibility to document those cases ;) |
Hey guys, and sorry for the late response 😅 you are indeed accurate that any integral type is supported, and I have updated the article for that (here: #937). |
https://www.arduino.cc/reference/en/language/structure/control-structure/switchcase/
Allowed data types according to the reference are int and char. However, any integral type is allowed (e.g. uint32_t, byte, ...).
The text was updated successfully, but these errors were encountered: