Detab / Entab(有点OT?) [英] Detab/Entab( a little OT?)
问题描述
K& R将4个练习用于Detab / Entab问题。一个非常粗略的
搜索显示整个宗教跟随空格与标签
争议....所以,我想这些练习并非完全真空。
我的问题是C程序员在现实生活中以及在什么情况下处理这个问题的频率是多少?
K&R devote 4 exercises to Detab/Entab issues. An extremely cursory
search reveals entire religions following space vs tab
controversy....so, I guess the exercises are not in a complete vacuum.
My question is how often C programmers have to deal with this issue in
real life and under which circumstances?
推荐答案
mdh写道:
mdh wrote:
K& R将4个练习用于Detab / Entab问题。一个非常粗略的
搜索显示整个宗教跟随空格与标签
争议....所以,我想这些练习并非完全真空。
我的问题是C程序员在现实生活中以及在什么情况下处理这个问题的频率是多少?
K&R devote 4 exercises to Detab/Entab issues. An extremely cursory
search reveals entire religions following space vs tab
controversy....so, I guess the exercises are not in a complete vacuum.
My question is how often C programmers have to deal with this issue in
real life and under which circumstances?
在我看来商店,它已经发生了足够的事情,我们有一个正式的公司范围
空白规则(由一个建筑师在*天*圣战之后设定),一个
对应的vimrc Vim用户的文件,以及提交的政策
更改版本控制将被拒绝,如果空格规则是
不被尊重。
At my shop, it has happened enough that we have an official company-wide
whitespace rule (set down by an architect after *days* of holy wars), a
corresponding vimrc file for Vim users, and a policy where submitted
changes to version control will be rejected if the whitespace rules are
not honoured.
聪明的猴子说:
Clever Monkey said:
mdh写道:
mdh wrote:
> K& R将4个练习用于Detab / Entab问题。一个极其粗略的搜索揭示了整个宗教的空间与标签
争议....所以,我想这些练习并不是一个完整的真空。我的问题是C程序员在现实生活中以及在什么情况下处理这个问题的频率是多少?
>K&R devote 4 exercises to Detab/Entab issues. An extremely cursory
search reveals entire religions following space vs tab
controversy....so, I guess the exercises are not in a complete
vacuum. My question is how often C programmers have to deal with this
issue in real life and under which circumstances?
在我的商店,它已经发生了足够的事情我们有一个官方
公司范围的空白规则(由建筑师在
圣战之后*设置),一个用于Vim用户的相应vimrc文件,以及策略
如果不遵守
空格规则,则拒绝提交版本控制的更改。
At my shop, it has happened enough that we have an official
company-wide whitespace rule (set down by an architect after *days* of
holy wars), a corresponding vimrc file for Vim users, and a policy
where submitted changes to version control will be rejected if the
whitespace rules are not honoured.
这有点傻,不是吗?为什么不直接在办理登机手续过程中通过
缩进来执行?
-
Richard Heathfield
Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk
电子邮件:rjh在上述域名, - www。
That''s a bit silly, isn''t it? Why not just mandate running it through
indent as part of the check-in process?
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Richard Heathfield< rj*@see.sig.invalidwrites :
Richard Heathfield <rj*@see.sig.invalidwrites:
Clever Monkey说:
Clever Monkey said:
[...]
[...]
>在我的商店,我们有一个正式的公司范围的空白规则(由建筑师在*天后设定*)
神圣之战),Vim用户的相应vimrc文件,以及如果不遵守
空白规则,将拒绝提交版本控制的更改的策略。
>At my shop, it has happened enough that we have an official
company-wide whitespace rule (set down by an architect after *days* of
holy wars), a corresponding vimrc file for Vim users, and a policy
where submitted changes to version control will be rejected if the
whitespace rules are not honoured.
这有点傻,不是吗?为什么不直接通过
缩进来执行它作为登记过程的一部分?
That''s a bit silly, isn''t it? Why not just mandate running it through
indent as part of the check-in process?
或者至少扩展。
(对于那些不熟悉Unix工具的人,缩进重新格式化C source
代码,并且展开将标签扩展到空格。)
-
Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>
San迭戈超级计算机中心< *< http://users.sdsc.edu/~kst>
我们必须做点什么。这是事情。因此,我们必须这样做。
- Antony Jay和Jonathan Lynn,是部长
Or at least expand.
(For those not familiar with Unix tools, "indent" reformats C source
code, and "expand" expands tabs to spaces.)
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
这篇关于Detab / Entab(有点OT?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!