Today on Controversial Saturday:
Curly braces!

In languages acceping both, which is better?

No braces:

if (condition)
do_this();

OR yes braces:

if (condition) {
do_this();
}

#programming #coding #c #cpp #style

Follow

@dcz I really wanted to say, "Yes, indentation." ;-) ...buy not python alignment rules. Maybe languages shouldn't allow a choice.

I think people should do want they want, but don't fuck up.

@lwriemen If "don't fuck up" was enough, we'd be living in a literal paradise :D

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml