红联Linux门户
Linux帮助

Linus Torvalds因内核注解标点格式发飙

发布时间:2016-07-13 14:49:50来源:红联作者:lovsher
来源:solidot

Linus Torvalds在Linux内核邮件开发者列表上再次发飙,将部分程序员偏爱的代码注解标点格式称为“脑残”。他强烈反对的注解格式类似:[code]/* This is disgusting drug-induced
* crap, and should die
*/[/code]和[code]/* This is also very nasty

* and visually unbalanced */[/code]他个人支持的格式类似:[code]/* This is a comment */[/code]和[code]/*

* This is also a comment, but it can now be cleanly

* split over multiple lines

*/[/code]
文章评论

共有 0 条评论