2 C || ~2 C [英] 2 C || ~ 2 C

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

问题描述

语言C中是否有任何方面,如果你今天设计这种语言,你会改变吗?我认为这是一种成熟的语言,它不需要任何改进。
不需要任何改进。你怎么看?怎么样C99对抗

C89? C语言是否在不断发展?你会把语言C的改进限制在哪里?

?如果它没有坏,

为什么修复它?抱歉我的英语不好,我还在学习。

Is there any aspect in language C, that you would change if you were
to design that language today? I think it''s a mature language and it
doesn''t need any refinement. What do you think? What about C99 contra
C89? Is C language constantly evolving language? Where would you put
the limit for the improvements for the language C? If it ain''t broke,
why fix it? Sorry for my broken English, I''m still learning.

推荐答案

kl ********** @ gmail.com 写道:

Is语言C中有任何方面,如果你今天设计这种语言,你会改变吗?
Is there any aspect in language C, that you would change if you were
to design that language today?



是的,我怀疑我们中的大多数人都可以提出很长的事情清单

我们想要改变。当然,我想要的很多改变都会破坏现有的代码,这意味着它们不会发生(至少在b
)任何称为C的语言。


-

Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *< http:/ /users.sdsc.edu/~kst>

我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

Yes, and I suspect most of us could come up with long lists of things
we''d like to change. Of course, a lot of the changes I''d like would
break existing code, which means they just aren''t going to happen (at
least not in any language called "C").

--
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"


kl ********** @ gmail.com 写道,于20/03/07 23:16:
kl**********@gmail.com wrote, On 20/03/07 23:16:

语言C中是否有任何方面,如果你今天设计这种语言,你会改变它?


Is there any aspect in language C, that you would change if you were
to design that language today?



是的。一些。例如,我会有一个适当的枚举类型,
强制原型(或确保传递给函数的

参数的其他机制正确)。

Yes. Several. For example I would have a "proper" enumerated type,
mandatory prototypes (or some other mechanism for ensuring that the
parameters passed to a function are correct).


我认为这是一种成熟的语言,它不需要任何改进。
不需要任何改进。你怎么看?怎么样C99对抗

C89?
I think it''s a mature language and it
doesn''t need any refinement. What do you think? What about C99 contra
C89?



它有一些改进,但可能在某些方面做得更多而且我比其他人确信其有用性更低更改。

It has some improvements, but could have done more in some areas and I''m
less than convinced of the usefulness of other changes.


C语言是否在不断发展?
Is C language constantly evolving language?



是和否。编译器编写者添加扩展,其中一些可能会使它成为一个新标准,其中大部分都不会。

Yes and no. Compiler writers add extensions some of which might make it
in to a new standard, most of which won''t.


哪里会你把

的语言C的改进限制?
Where would you put
the limit for the improvements for the language C?



有很多现有的代码很难改变很多东西,即使事后看来它会更好如果他们是不同的话。

There is so much existing code that it is difficult to change a lot of
things even where, with hindsight, it would be better if they were
different.


如果它没有坏掉,

为什么修复它?
If it ain''t broke,
why fix it?



啊,但它在很多方面都被打破了。

Ah, but it is broken in lots of ways.


抱歉我的英语不好,我我还在学习。
Sorry for my broken English, I''m still learning.



你的英语完全可以理解,虽然你使用的是逗号

但你不应该这样。

-

Flash Gordon

Your English is perfectly understandable, although you are using commas
where you should not.
--
Flash Gordon


3月20日下午4:16,klaushuot ... @ gmail.com写道:
On Mar 20, 4:16 pm, klaushuot...@gmail.com wrote:

语言C中是否有任何方面,如果你今天设计这种语言,你会改变吗?我认为这是一种成熟的语言,它不需要任何改进。
不需要任何改进。你怎么看?怎么样C99对抗

C89? C语言是否在不断发展?你会把语言C的改进限制在哪里?

?如果它没有坏,

为什么修复它?抱歉我的英语不好,我还在学习。
Is there any aspect in language C, that you would change if you were
to design that language today? I think it''s a mature language and it
doesn''t need any refinement. What do you think? What about C99 contra
C89? Is C language constantly evolving language? Where would you put
the limit for the improvements for the language C? If it ain''t broke,
why fix it? Sorry for my broken English, I''m still learning.



我们不能倒转时钟,但我会让字符串携带长度

我会有真正的n维数组(知道它们的大小)。

如果C总是知道真实,确切的尺寸,那么就会有很多安全漏洞。

但如果一只青蛙有翅膀,他就不会把他的屁股刮到岩石上。

We can''t turn back the clock, but I would make strings carry lengths
and I would have true n-dimentional arrays (that know their size).
If C always knew the real, exact size of things, there would be a lot
less security holes in it.
But if a frog had wings, he wouldn''t scrape his butt on the rocks.


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

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