18

I love brackets on the same line as function declaration and I am proud of it.
func() {
return war;
}

Comments
  • 0
    checkstyle error :-D
  • 0
    @Null-Device Yes, I like separation too, but only if there is more than one line inside the function. If function is longer I always put an empty line between content and declaration. In my opinion empty line look so much better than curly bracket...like this:

    func() {

    // long content
    // here

    }
  • 0
    this is my preferred style as well. I'm a huge fan of clean, concise syntax.
  • 1
    Anyone who doesn't do this is weird.
  • 0
    I also like this style, but C# convention seems to be against it.
    Any C# Dev here that follows this style?
Add Comment