OsrsNeedsF2P to Programmer Humor · 1 year agoThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comexternal-linkmessage-square70fedilinkarrow-up1171arrow-down12
arrow-up1169arrow-down1external-linkThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comOsrsNeedsF2P to Programmer Humor · 1 year agomessage-square70fedilink
minus-squareEavolution@kbin.sociallinkfedilinkarrow-up12arrow-down1·1 year agoIt goes on the line! If you put it below, you’re wasting a line for no extra readability!
minus-squareGNU/Dhruvlinkfedilinkarrow-up11arrow-down1·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-squareSteeve@lemmy.calinkfedilinkarrow-up5·1 year agoYour closing } goes on a new line below at the same indent depth as the line containing the open {!
minus-squareForbiddenRootlinkfedilinkarrow-up3·edit-21 year agofn main() { println!("WTF?"); } PS: I know what you meant
minus-squareTheInsane42linkfedilinkarrow-up2·1 year agoThis, as it also helps when using % to go to the matching open/close bracket when the cursos doesn’t jump all around the place…
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
This, as it also helps when using % to go to the matching open/close bracket when the cursos doesn’t jump all around the place…