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


当前回答

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

其他回答

def leppard
# what, i cant have my own convention?
end
else
{
    // rien, c'est parfait.
}
/**
 * If you don't understand this code, you should be flipping burgers instead.
 */

BerkeleyDB

/*
 * Chaos reigns within.
 * Reflect, repent, and reboot.
 * Order shall return.
 */
return (DB_RUNRECOVERY);

我一直很喜欢Paul DiLascia在他的文件头中写的:

// If this code works, it was written by Paul DiLascia. If not, I don't know
// who wrote it