478
you are viewing a single comment's thread
view the rest of the comments
[-] Windex007@lemmy.world 11 points 1 year ago

It's 2023, why does your language have semicolons at all?

Explicitly constructing your intentions are features of a language.

I LOVE types. I LOVE semi colons. I LOVE compiler errors.

Why? Because the ALTERNATIVE is finding (if you're lucky) unexpected behaviour at run-time.

I promise, I promise SO HARD, that memes about semi colons or "my code doesn't compile" are GREAT problems to have.if that's what's making you sad, your life is good and you're getting paid 10x too much.

[-] _danny@lemmy.world 10 points 1 year ago

People who are annoyed by types have never had to spend weeks of their life hunting for a missing property on an object.

Compilation errors are so much more preferable than finding out the same error at runtime.

[-] Rodeo@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

Ada has got your back. Entire classes of runtime bugs in C code are eliminated by compiler errors.

You can't even make a integer overflow unless you've explicitly declared that statement as unsafe.

[-] flamingo_pinyata@sopuli.xyz 7 points 1 year ago

Semicolons are not at all comparable to types.

Types give structure to your program, prevent bugs and make team work easier. Semicolons are an artifact of the times it was thought multiple statements could go on a same line. Although I do admit, they make language design easier.

this post was submitted on 15 Oct 2023
478 points (95.6% liked)

Programmer Humor

32386 readers
653 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS