What is the name of this convention for curly braces?

前端 未结 7 1522
借酒劲吻你
借酒劲吻你 2021-02-19 13:58

I\'m a bit puzzled by the number of developers I see writing methods and classes with curly braces below the class name or the method. What convention are they following?

<
7条回答
  •  别那么骄傲
    2021-02-19 14:22

    I prefer the second convention because the closing bracket will be directly below the opening one, so it's easier to find.

提交回复
热议问题