MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/jtg3hx/getting_digits_using_switch_catch/gc8ancc/?context=3
r/badcode • u/HolySpecs • Nov 13 '20
52 comments sorted by
View all comments
1
The thing that bothers me most is that the type of in is string, not char, yet its evaluate digit not digits. Also -1 will never be returned but this is totally fine to spot errors while coding.
1
u/Kllngii Nov 14 '20
The thing that bothers me most is that the type of in is string, not char, yet its evaluate digit not digits. Also -1 will never be returned but this is totally fine to spot errors while coding.