1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

科技 Linus Torvalds因内核注解标点格式发飙

Discussion in '新闻聚焦' started by 漂亮的石头, 2016-07-13.

  1. 漂亮的石头

    漂亮的石头 版主 Staff Member

    Joined:
    2012-02-10
    Messages:
    488,438
    Likes Received:
    48
    Linus Torvalds在Linux内核邮件开发者列表上再次发飙,将部分程序员偏爱的代码注解标点格式称为“脑残”。他强烈反对的注解格式类似:/* This is disgusting drug-induced * crap, and should die */(具体见下图)


    [​IMG]​

    和/* This is also very nasty​

    * and visually unbalanced */​

    他个人支持的格式类似:​

    /* This is a comment */​

    和​

    /*​

    * This is also a comment, but it can now be cleanly​

    * split over multiple lines​

    */​
     
Loading...