奇怪的问题 [英] Strange Question

查看:102
本文介绍了奇怪的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,我今天正在进行代码审查,并被问到一个奇怪的问题(至少我认为是b
)。我指出他们使用的命名约定
用于与标准中标识为

的保留表单之一冲突的宏。经过一番震惊和怀疑之后,项目负责人同意改为大会。其中一名工程师告诉他们,我们真的想接受这个标准吗?我不知道怎么回答除了回复,如果你正在编写C

代码,为什么不呢?


REH

OK, I was at a code review today and got asked a strange questions (at
least I thought it was). I pointed out that the naming convention they
were using for macros clashed with one of the reserved forms for
identifies in the standard. After some shock and disbelief, the lead
of the project agreed to change to convention. One of the engineers
piped up and asked, "Do we really want to accept the standard?" I
didn''t know how to answer other than response, "If you are writing C
code, why would you not?"

REH

推荐答案

REH说:
REH said:
好的,我今天正在进行代码审查,并被问到一个奇怪的问题(至少我认为是这样)。我指出它们用于宏的命名约定与标准中标识的
标识之一发生冲突。经过一番震惊和怀疑之后,该项目的领导同意改为大会。其中一名工程师说道,我们真的想接受这个标准吗?我不知道除了回复之外怎么回答,如果你正在写C
代码,为什么不呢?
OK, I was at a code review today and got asked a strange questions (at
least I thought it was). I pointed out that the naming convention they
were using for macros clashed with one of the reserved forms for
identifies in the standard. After some shock and disbelief, the lead
of the project agreed to change to convention. One of the engineers
piped up and asked, "Do we really want to accept the standard?" I
didn''t know how to answer other than response, "If you are writing C
code, why would you not?"




对/不接受标准有明确的好处。这意味着你

可以写出你喜欢的任何旧垃圾并期望它能够运作。如果它不是,那么你只需要大声喊叫编译器中有一个错误!并切换到另一个供应商。

和另一个。另一个......


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)



There are definite benefits to /not/ accepting the Standard. It means you
can write any old junk you like and expect it to work. If it doesn''t, you
simply yell "there''s a bug in the compiler!" and switch to another vendor.
And another. And another...

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)


在文章< Vr **** ****************@bt.com>,

Richard Heathfield< in ***** @ invalid.invalid>写道:
In article <Vr********************@bt.com>,
Richard Heathfield <in*****@invalid.invalid> wrote:
对/不接受标准有明确的好处。这意味着你可以写任何你喜欢的旧垃圾并期望它能够运作。如果它不是,你只是喊叫编译器中有一个错误!并切换到另一个供应商。
There are definite benefits to /not/ accepting the Standard. It means you
can write any old junk you like and expect it to work. If it doesn''t, you
simply yell "there''s a bug in the compiler!" and switch to another vendor.




如果你*遵循标准,那就大致相同......


- Richard



It''s much the same if you *do* follow the standard...

-- Richard


真的..你应该遵循惯例。在实践中,谁可以为b
打扰;)

____________

编译器 - 在线C#,C,VB.NET,Fortran编译器 -
http://www.caller.me.uk/Compilr

Really.. you should follow conventions. In practise, who can be
bothered ;)
____________
Compilr - the online C#, C, VB.NET, Fortran compiler -
http://www.caller.me.uk/Compilr


这篇关于奇怪的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆