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

Basic used “else”.

It’s nice. “if”, “then”, and “else”. I spent a year programming a shitty roulette game on an Apple 2e back in high school. I still remember the joy of using if/then/else paired with goto to make a horrible mess of spaghetti logic.

But yeah, “else” is nice.

permalink
report
parent
reply
7 points
*

Using a standalone ‘else’ would tickle my brain in the same nice way that being able to declare a variable inside an ‘if’ statement as if it were a ‘for’ loop (which you can do in modern C++) does.

permalink
report
parent
reply
2 points

Many languages let you scope variables.

In c# you can create an arbitrary scope to declare variables in. Most likely in others as well.

permalink
report
parent
reply
2 points

Ah clever, didn’t think of doing this. Not having to encapsulate if statements in scopes would still look cleaner though

permalink
report
parent
reply
2 points

Or a rust “if let”

permalink
report
parent
reply
3 points

Ooh yes. Rust is king when it comes to this sort of inline stuff. Inline match. Mmmmmm!

permalink
report
parent
reply
1 point

Block scoped variables are bad?

permalink
report
parent
reply
1 point

🤷‍♂️

permalink
report
parent
reply
2 points

Let’s just scrap every language except various forms of BASIC.

permalink
report
parent
reply
4 points

Please God, no. I had to unravel terminal scripting code that was written in some propriety BASIC language with basically no documentation.

Took me a chunk of time trying to figure out how it worked before I made the realization that it was BASIC

permalink
report
parent
reply
1 point

Try PL/SQL.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 5.2K

    Monthly active users

  • 1.1K

    Posts

  • 38K

    Comments