How do you format curly braces? {}

funbeedev

Fum

Posted on December 20, 2020

How do you format curly braces? {}

A discussion just for fun!

When coding in languages that use the curly braces {} do you place the curly brace on a new line or in line?

Like so:

Option A:

int main()
{

}
Enter fullscreen mode Exit fullscreen mode

OR

Option B:

int main(){

}
Enter fullscreen mode Exit fullscreen mode

Just curious what others use. I always use option A and I'm always glad to see a codebase using the same because it's so much easier to read for me ๐Ÿ˜…

So what about you?

๐Ÿ’– ๐Ÿ’ช ๐Ÿ™… ๐Ÿšฉ
funbeedev
Fum

Posted on December 20, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

ยฉ TheLazy.dev

About