摘抄两段有意思的代码,“不管你们信不信,反正我信了” » 荒野无灯weblog

Keep It Simple, Stupid.

荒野无灯weblog

摘抄两段有意思的代码,“不管你们信不信,反正我信了”

“不管你们信不信,反正我信了”:

try
{
    if (you.believe(it) || !you.believe(it) )
    {
        I.believe(it);
    }
}
catch (Exception ex)
{
    throw new Exception("It's a miracle!");
}
finally
{
    it.justHappened();
}

有人把“你爱,或者不爱我,爱就在那里,不增不减”写成了一段C#代码:
(经phoetry提醒,稍息修改了一个关键字)


while (you.Love(me) || !you.Love(me))
{
    love++;
    love--;
}

摘自老赵的博客:谈谈年度最佳代码“不管你们信不信,反正我信了”

Tagged in :

All Comments (0)
Gravatar image
No Comments