chenxinwri9212
V2EX  ›  Java

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

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

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

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