this post was submitted on 05 Jul 2024
13 points (93.3% liked)

Programmer Humor

35334 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] lurch@sh.itjust.works 5 points 1 year ago (6 children)

all lines not terminated by a single space are comments

[–] Ziglin@lemmy.world 2 points 1 year ago (4 children)

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

[–] turbowafflz@lemmy.world 2 points 1 year 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")
;
[–] miningforrocks@lemmy.ml 1 points 1 year ago (1 children)

Also a spicial place in hell for you

[–] rovingnothing29@lemmy.world 2 points 1 year ago

Can we add the comefrom function too?

load more comments (1 replies)
load more comments (1 replies)
load more comments (2 replies)