@OsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml • 1 year agoThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comimagemessage-square56fedilinkarrow-up149
arrow-up149imageThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.com@OsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml • 1 year agomessage-square56fedilink
minus-squareEavolutionlinkfedilink5•1 year agoIt goes on the line! If you put it below, you’re wasting a line for no extra readability!
minus-squareGNU/Dhruvlinkfedilink3•1 year agoIt goes on the next line, so you can have open and close brackets at the same indent depth for easy visual matching.
minus-square@Steeve@lemmy.calinkfedilink3•1 year agoYour closing } goes on a new line below at the same indent depth as the line containing the open {!
minus-squareForbiddenRootlinkfedilink1•edit-21 year agofn main() { println!("WTF?"); } PS: I know what you meant
It goes on the line! If you put it below, you’re wasting a line for no extra readability!
It goes on the next line, so you can have open and close brackets at the same indent depth for easy visual matching.
Your closing } goes on a new line below at the same indent depth as the line containing the open {!
fn main() { println!("WTF?"); }
PS: I know what you meant