You are viewing a single thread.
View all comments View context
4 points

Me who still doesn’t understand switch

permalink
report
parent
reply
6 points

It’s a shorter way to write if else if else if else if else, which keeps indenting and harder to read if there are lots of cases, also because each if statement checks the same variable for different values.

permalink
report
parent
reply
2 points

Turns on and off?

  • non programmer
permalink
report
parent
reply
1 point

I think they meant the Nintendo console

permalink
report
parent
reply

memes

!memes@lemmy.world

Create post

Community rules

1. Be civil

No trolling, bigotry or other insulting / annoying behaviour

2. No politics

This is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent reposts

Check for reposts when posting a meme, you can only repost after 1 month

4. No bots

No bots without the express approval of the mods or the admins

5. No Spam/Ads

No advertisements or spam. This is an instance rule and the only way to live.

Sister communities

Community stats

  • 13K

    Monthly active users

  • 3.1K

    Posts

  • 74K

    Comments