chenxinwri9212
V2EX  ›  Java

请问你们写代码方法体里面第一行都空不空啊?

  •  
  •   chenxinwri9212 · Jun 30, 2020 · 3440 views
    This topic created in 2334 days ago, the information mentioned may be changed or developed.

    很纠结方法体里面第一行是空着好看还是不空好看?

    8 replies  •  2020-07-01 13:46:12 +08:00
    guyeu
    guyeu
    Jun 30, 2020
    1
    不空,除非方法签名太长占了好几行
    tang123456
    tang123456
    Jun 30, 2020
    2
    一般不空
    ochatokori
    ochatokori
    Jun 30, 2020 via Android
    3
    方法体不空
    不过类的第一行会空
    Twofyw
    Twofyw
    Jun 30, 2020
    4
    Python 不空,记得刚在 Google Python Style Guide 看过: http://google.github.io/styleguide/pyguide.html#35-blank-lines
    so2back
    so2back
    Jun 30, 2020
    5
    @ochatokori 一样
    linvaux
    linvaux
    Jun 30, 2020
    6
    不空
    clcx
    clcx
    Jul 1, 2020
    7
    不
    FlexGap
    FlexGap
    Jul 1, 2020
    8
    不空。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1886 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:31 · PVG 23:31 · LAX 07:31 · JFK 10:31
    ♥ Do have faith in what you're doing.