Linus Torvalds在Linux內核郵件開發者列表上再次發飙,將部分程序員偏愛的代碼注解標點格式稱為“腦殘”。他強烈反對的注解格式類似:
/* This is disgusting drug-induced * crap, and should die */
和
/* This is also very nasty * and visually unbalanced */
他個人支持的格式類似:
/* This is a comment */和/* * This is also a comment, but it can now be cleanly * split over multiple lines */
原文來自:http://www.linuxeden.com/html/news/20160713/167036.html
轉載地址:http://www.linuxprobe.com/kernel-punctuation-freak.html
http://xxxxxx/Linuxjc/1155830.html TechArticle