867
you are viewing a single comment's thread
view the rest of the comments
[-] lurch@sh.itjust.works 208 points 2 years ago

all lines not terminated by a single space are comments

[-] tabarnaski@sh.itjust.works 86 points 2 years ago

There's a special place in hell for you

[-] Ziglin@lemmy.world 53 points 2 years ago

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

[-] turbowafflz@lemmy.world 49 points 2 years ago

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")
;
[-] miningforrocks@lemmy.ml 15 points 2 years ago

Also a spicial place in hell for you

[-] rovingnothing29@lemmy.world 7 points 2 years ago

Can we add the comefrom function too?

[-] Ziglin@lemmy.world 4 points 2 years ago

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

[-] AVincentInSpace@pawb.social 3 points 2 years 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)

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

Programmer Humor

40069 readers
7 users here now

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

Rules:

founded 6 years ago
MODERATORS