178
you are viewing a single comment's thread
view the rest of the comments
[-] renegadespork@lemmy.jelliefrontier.net 6 points 3 months ago* (last edited 3 months ago)

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

[-] Bogasse@lemmy.ml 13 points 3 months ago* (last edited 3 months ago)
println!("{comment}");

C'mon, it's 2025!

[-] spacecadet@lemm.ee 0 points 3 months ago

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

Just a snippet from a bigger function.

this post was submitted on 01 Apr 2025
178 points (89.0% liked)

Programmer Humor

37235 readers
18 users here now

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

Rules:

founded 6 years ago
MODERATORS