224
Antimemes rule (lemmy.dbzer0.com)
submitted 7 months ago* (last edited 7 months ago) by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 30 points 7 months ago

I was for long a long time using Kernighan style, but recently switched to Allman. Everything is suddenly more readable. It's a journey.

[-] [email protected] 6 points 7 months ago

This! Similar journey for me going from K&R to GNU!

[-] [email protected] 3 points 7 months ago

Won't even compile in languages like Go though

[-] [email protected] 6 points 7 months ago

Good thing I dont use Go. Primarly php for work, c# for hobby racing game in unity.

[-] [email protected] 2 points 7 months ago* (last edited 7 months ago)
while (x == y) {

   func1();
   func2();
}

notice the newline

[-] [email protected] 7 points 7 months ago
this post was submitted on 10 Feb 2024
224 points (100.0% liked)

196

16240 readers
1882 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS