What is the name of this convention for curly braces?

前端 未结 7 1521
借酒劲吻你
借酒劲吻你 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条回答
  •  梦毁少年i
    2021-02-19 14:23

    The first convention saves precious space. The bracket matching is done by the editor anyway.

提交回复
热议问题