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


当前回答

/* Halley's comment */

其他回答

消毒:

//Forward declarations:

class X {}; // TODO: Remove {}  ! When we get X defined....
// Fuck.

,……

// This code worked before, but my cat decided to take a trip across my keyboard...

Control + A,重写

这是在以前的项目中作为签入注释添加到源代码控制中的注释。

这是我今天重构一些代码时发现的一条评论

if( year < 100 ): year += 2000 #lol, Y2K

我没有这个来源的副本,但我一直记得它:

//如果你想不明白,就不要读这篇文章