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


当前回答

Get This hack!

在一行汇编代码中,在几页未注释的代码之后。

其他回答

/* Jeez, this is an ugly mess */

...comment from the X11R6 internals source code circa 1991.

注意上面代码中的bug;我只是证明了它是正确的,并没有尝试过。

这是唐纳德·克努斯写的。

// If you're reading this, that means you have been put in charge of my previous project.
// I am so, so sorry for you. God speed.

在JUnit API中找到:

/**
 * ...as the moon sets over the early morning Merlin, Oregon
 * mountains, our intrepid adventurers type...
 */
public Test createTest(Class theClass, String name) {
    ...
}
const int TEN=10; // As if the value of 10 will fluctuate...