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


当前回答

catch (Exception ex)
{ 
    // just die already.
}

其他回答

前段时间我看到:

raise InvalidChild() # e.g. no legs

这很奇怪,因为“inwalida”在波兰语中是残疾人的意思。愚蠢的我:)

从谷歌代码项目:

# This job would be great if it wasn't for the fucking customers.
using namespace std;            // So sue me
// this is really complicated

没有其他评论了

/* logic */
#ifndef TRUE
# define TRUE 1
#endif /* TRUE */
#ifndef FALSE
# define FALSE 0
#endif /* FALSE */
#define EOF_OK TRUE
#define EOF_NOT_OK FALSE

以及在IOCCC页面上的mkentry.c的其余部分。每次读这篇文章的时候,我都笑不出来。