this post was submitted on 17 Jun 2023
49 points (100.0% liked)

Programmer Humor

32483 readers
323 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
[–] gnuslashdhruv@lemmy.ml 5 points 1 year ago (5 children)

Is this some kind of python meme I'm too C++ to understand?

Now, I'm completely willing to start a war about { going on the next line.

[–] Eavolution@kbin.social 5 points 1 year ago (1 children)

It goes on the line! If you put it below, you're wasting a line for no extra readability!

[–] gnuslashdhruv@lemmy.ml 4 points 1 year ago (1 children)

It goes on the next line, so you can have open and close brackets at the same indent depth for easy visual matching.

[–] Steeve@lemmy.ca 3 points 1 year ago (1 children)

Your closing } goes on a new line below at the same indent depth as the line containing the open {!

[–] ForbiddenRoot@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)
fn main() {
    println!("WTF?");
          }

PS: I know what you meant

load more comments (3 replies)