Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curly braces #43

Open
jakerella opened this issue Sep 27, 2013 · 6 comments
Open

Curly braces #43

jakerella opened this issue Sep 27, 2013 · 6 comments

Comments

@jakerella
Copy link

I'd love to see the split of code with curly braces on the same line as functions or conditionals versus on the next line. (I'm a JavaScript dev, but seems like it would work in a lot of languages.)

Same line:

function foo() {
  ...
}

Next line:

function foo()
{
  ...
}
@outsideris
Copy link
Owner

@jakerella
you mean to add curlybrace convention in javascript such like "How to write block statement" in Java?

@mlaflamm
Copy link

Yes, this would be great to see it for languages other than Java. I'm very curious to see the result for C#. I have a feeling that this is one of the few languages where "next line" is more popular.

@jakerella
Copy link
Author

@outsideris Aah! Yes, I did not see the Java one before. I would like to see that for JavaScript.

@outsideris
Copy link
Owner

@mlaflamm It is already added in C#. Your feeling is right! 😄

@jakerella I see what you mean.

@ghost ghost assigned outsideris Oct 1, 2013
@konijn
Copy link

konijn commented Jun 27, 2014

This is so much needed for JS.

@joaomatossilva
Copy link

I would love also to see the usage of curly braces against not to use curly braces at all, for 1 line statements, but since this only analyses line by line don't think this is possible

@outsideris outsideris removed their assignment Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants