Answer the question
In order to leave comments, you need to log in
How to properly place curly braces?
I understand that there is most likely no exact rule on this topic, but still, how would it be more correct to place brackets like this:
for (;;) {
//...
}
for (;;)
{
//...
}
Answer the question
In order to leave comments, you need to log in
Code style guidelines
In addition, we enforce the following code rules:
...
...
In general, it does not matter how you feel comfortable and do it. Modern IDEs can format properly. Well, or there are all sorts of beautifiers of the code.
Pick one style and stick with it. The main thing is that you have the same style in all files and that it is convenient for your team to work with you, and for you with it.
As an example - google-styleguide.googlecode.com/svn/trunk/javagui...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question