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


当前回答

这是在PHP代码中找到的

$s=2; // chicken and bacon wrap for lunch

多么有用,幸运的是$s是不言自明的

其他回答

#如你所见:我注释了代码!

//Mr. Compiler, please do not read this.

高斯林的Emacs源代码中的ascii艺术头骨和交叉骨骼(这里很难重现)(警告说他编写的超热屏幕管理包不容易理解)。

在开发团队中每个人都在大量编辑的代码文件头部:

'Avert your eyes, it may take on other forms!

好弗兰德斯。

//When I wrote this, only God and I understood what I was doing
//Now, God only knows