What is the name of this convention for curly braces?

前端 未结 7 1449
借酒劲吻你
借酒劲吻你 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:39

    See: http://en.wikipedia.org/wiki/Indent_style

    Syrion has identified it as the ANSI style, Sun follows the K&R style of brace placement.

    Tangent: and now I know that accursed style is called Whitesmiths style

提交回复
热议问题