this post was submitted on 01 Apr 2025
159 points (88.4% liked)

Programmer Humor

34790 readers
227 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
[–] [email protected] 6 points 3 days ago* (last edited 3 days ago) (2 children)

let comment: String = String::from(“lol”);
println!(“{}”, comment);

[–] [email protected] 12 points 3 days ago* (last edited 3 days ago)
println!("{comment}");

C'mon, it's 2025!

[–] [email protected] 0 points 3 days ago (1 children)

Not inside a main function, won’t pass rust compiler check

[–] [email protected] 2 points 2 days ago

Just a snippet from a bigger function.