你遇到过的源代码中最好的注释是什么?


当前回答

很久以前,我遇到了一些连接脚本,虽然我不记得语法,但我记得注释,因为我是平克·弗洛伊德的粉丝。

//Attempt Handshake: Hello? This is London calling. Are we reaching you?


//Handshake Failed: I don't understand...he just hung up.

其他回答

// I am not sure if we need this, but too scared to delete. 
// GK Experimental

(GK是编码器的首字母缩写)

用来表示部分代码,实际上,是实验性的。:)

这是一个很好的标志,当你在调试过程中碰到它时,你可能会在接下来的几个小时里忙着修复黑客。;)

来自Java 1.2的SwingUtilities:

doRun.run();  // ... "a doo run run".

Dennis M Ritchie在这里有一个关于一些古老UNIX注释的页面

// I dedicate all this code, all my work, to my wife, Darlene, who will 
// have to support me and our three children and the dog once it gets 
// released into the public.