why are undergrads in compsci so obsessed with switch statements

@vaporeon_ I've seen multiple times where some YouTuber in their first year of their undergraduate CS program is doing some code review and their primary concern is using if else when you could have used switch statements

Like, I like switch statements but who cares

Follow

not a serious take 

@wallhackio @vaporeon_

:blobmeow_sadafterreach:​ if else

:blobmeow_sadafterreach:​ switch

:blobmeow_forereach:​ map whose values are the corresponding handler to run

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.