Why is '//' style multiline comment bad (in Java)?

前端 未结 8 1696
甜味超标
甜味超标 2021-02-05 07:15

http://java.sun.com/docs/codeconv/html/CodeConventions.doc4.html#286

I was reading the above section of Java coding convention and started to wonder why it says \"// com

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 07:49

    may be for code formatting stuff ... if you did auto formatting (indentation) the codes will looks ugly.

    in some text editors, comments using /** ... **/ could be folded so it will make easier to read the code.

提交回复
热议问题