this post was submitted on 10 Feb 2024
214 points (99.5% liked)

196

17009 readers
568 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

If you have any questions, feel free to contact us on our matrix channel.

founded 2 years ago
MODERATORS
214
Antimemes rule (lemmy.dbzer0.com)
submitted 1 year ago* (last edited 1 year 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 1 year ago (3 children)

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

[–] sunoc 6 points 1 year ago

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

[–] [email protected] 3 points 1 year ago (1 children)

Won't even compile in languages like Go though

[–] [email protected] 6 points 1 year ago

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

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)
while (x == y) {

   func1();
   func2();
}

notice the newline