编码风格大战..
逛V2EX发现一四个月前的老帖.
1. 一行要不要限制在 80 个字符以内
2. 到底是用 Tab 缩进还是空格缩进好
3. 缩进宽度到底是 4 好还是 8 好,或者其它值。
4. 大括号要不要单独占一行
5. 大括号要不要缩进
6. 不是必要的大括号是不是一定要加
我的回答是:
1. 一行要限制在 80 个字符以内
2. 用 Tab 缩进好
3. 缩进宽度是 8 好。
4. 大括号要单独占一行
5. 大括号要缩进
6. 不是必要的大括号是一定要加的
Tags: Codes, custom, Style, Works
This entry was posted
on 星期六, 4月 14th, 2007 at 1:52 上午 and is filed under Codes, Works.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.