this post was submitted on 05 Jul 2024
855 points (97.9% liked)

Programmer Humor

31812 readers
534 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lurch 203 points 1 month ago (2 children)

all lines not terminated by a single space are comments

[–] tabarnaski 84 points 1 month ago

There's a special place in hell for you

[–] [email protected] 51 points 1 month ago (1 children)

Also each line starts with a semicolon and you have to escape spaces in strings using a double forward slash

[–] [email protected] 46 points 1 month ago (3 children)

I realized a while ago that there's nothing stopping me from writing rust like this

;println!("This is great")
;println!("I think everyone should write rust like this")
;println!("Probably works in most languages that use semicolons")
;
[–] [email protected] 14 points 1 month ago (1 children)

Also a spicial place in hell for you

[–] [email protected] 5 points 1 month ago

Can we add the comefrom function too?

[–] [email protected] 3 points 1 month ago

Nasm programmers probably think that is old code that you commented out.

[–] [email protected] 3 points 1 month ago

hope you don't forget the semicolon on a line by itself at the end (except in functions where you want to return the value of the last expression)