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 */
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/101011.html