linux-mad1

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

本文地址:https://www.linuxprobe.com/kernel-punctuation-freak.html编辑:王浩,审核员:冯振华

本文原创地址:https://www.linuxprobe.com/kernel-punctuation-freak.html编辑:王浩,审核员:暂无