来源:solidot
链接:http://www.solidot.org/story?sid=48920
(封面图是以前 Linus 吐槽 NVIDIA 的)
Linus Torvalds 在 Linux 内核邮件开发者列表上再次发飙,将部分程序员偏爱的代码注解标点格式称为“脑残”。
( http://lkml.iu.edu/hypermail/linux/kernel/1607.1/00627.html )
他强烈反对的注解格式类似:
/* 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
*/