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


当前回答

// Oh crap, i think i'm gonna yack

随后不久又有:

// TODO: end this lunacy

其他回答

消毒:

//Forward declarations:

class X {}; // TODO: Remove {}  ! When we get X defined....
// if the resultMap size is less than or equal to zero
// then the product is added
if (resultMap.size() <= 0)
long john; // silver
// Okay, let's do the loop, yeah come on baby let's do the loop
// and it goes like this ...

在给一个朋友看了这篇来自《Coding Horror》的文章几个小时后,我看到了他对代码的评论:

// valdez先生是一个暴力的精神病患者。别惹他生气。