那么我们的标准是什么? [英] So what Standard are we working off?

查看:129
本文介绍了那么我们的标准是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如果我们看一下像C ++这样的编程语言:当一个更新的标准

出来时,每个人都会采用它并放弃前一个。


看来C社区的事情并不那么明确。它看起来好像C99是最新的标准,但是更多的人

似乎正在使用C89标准。


有人可以向我解释为什么会这样吗?


-


Frederick Gotham


If we look at a programming language such as C++: When an updated Standard
comes out, everyone adopts it and abandons the previous one.

It seems though that things aren''t so clear-cut in the C community. It
would seem that C99 is the most up-to-date Standard, but far more people
seem to be working off the C89 Standard.

Could someone please explain to me why this is so?

--

Frederick Gotham

推荐答案

Frederick Gotham写道:
Frederick Gotham wrote:
如果我们看一下像C ++这样的编程语言:当一个更新的标准出来时,每个人都采用它并放弃前一个。

似乎C社区的事情并不那么明确。它似乎是C99是最新的标准,但是更多的人似乎正在使用C89标准。

有人可以向我解释为什么会这样?
If we look at a programming language such as C++: When an updated Standard
comes out, everyone adopts it and abandons the previous one.

It seems though that things aren''t so clear-cut in the C community. It
would seem that C99 is the most up-to-date Standard, but far more people
seem to be working off the C89 Standard.

Could someone please explain to me why this is so?



因为旧的工作正常吗?

(或者,不修理没有损坏的东西)。


Because the old one works fine?
(Or,dont repair something that is not broken).


Frederick Gotham写道:
Frederick Gotham wrote:
如果我们看一下像C ++这样的编程语言:当一个更新的标准出现时,每个人都采用它并放弃以前的一个。

似乎C社区的事情并不那么明确。它似乎是C99是最新的标准,但是更多的人似乎正在使用C89标准。

有人可以向我解释为什么会这样?
If we look at a programming language such as C++: When an updated Standard
comes out, everyone adopts it and abandons the previous one.

It seems though that things aren''t so clear-cut in the C community. It
would seem that C99 is the most up-to-date Standard, but far more people
seem to be working off the C89 Standard.

Could someone please explain to me why this is so?




因为C99还没有被广泛和完全实现,并且

因为对于大多数程序来说,C89工作正常。



Because C99 has not been widely and completely implemented yet, and
because, for most programs, C89 works fine.


Frederick Gotham< fg ******* @ SPAM.com>写道:
Frederick Gotham <fg*******@SPAM.com> writes:
如果我们看一下像C ++这样的编程语言:当一个更新的标准出现时,每个人都会采用它并放弃前一个。

它虽然C社区的事情并不那么明确。它似乎是C99是最新的标准,但是更多的人似乎正在使用C89标准。

有人可以向我解释为什么会这样?
If we look at a programming language such as C++: When an updated Standard
comes out, everyone adopts it and abandons the previous one.

It seems though that things aren''t so clear-cut in the C community. It
would seem that C99 is the most up-to-date Standard, but far more people
seem to be working off the C89 Standard.

Could someone please explain to me why this is so?




在C89标准发布之前,C编程社区在一个大混乱中是
。 K& R1是最接近标准的东西,但它不足以保证一致性。
不足以保证一致性。不同的编译器供应商

实现了他们自己的不兼容扩展,并且非常难以编写可移植代码。人们急切地等待ANSI

标准出现,供应商在发布之前开始实施部分




它没有标准和

标准之间的区别。


当1999年更新标准发布时,已经有了

几乎普遍采用的现有标准。它并不是完美的,但它确实可以编写实际的便携式代码。

对C99的需求几乎没有那么多C89;它制作了一个标准和另一个标准之间的区别

不同的标准。


历史记录:C89标准已经发布由ANSI于1989年发布。它是由ISO重新发行的,它在1990年重新发布了化妆品更改(例如章节编号

的变化);然后ANSI采用ISO标准。因为

这个,我更喜欢把它称为C90而不是C89,而是作为ISO C

而不是ANSI C.(ANSI C89和ISO C90是相同的语言,

由略有不同的标准文档描述。)


ANSI作为ISO的成员机构,已采用1999 ISO C标准,因此

严格来说ANSI C应该参考C99,但它通常指的是

到C89或C90。


1995年还有一个小的更新。

-

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

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

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



Before the C89 standard was published, the C programming community was
in a major mess. K&R1 was the closest thing to a standard, but it
wasn''t enough to guarantee consistency. Different compiler vendors
implemented their own incompatible extensions, and it was very
difficult to write portable code. People waited eagerly for the ANSI
standard to appear, and vendors started implementing parts of it
before it was published.

It made the difference between not having a standard and having a
standard.

When the 1999 updated standard was issued, there was already an
existing standard that had been nearly universally adopted. It wasn''t
perfect, but it did make it possible to write actual portable code.
There wasn''t nearly as much demand for C99 as the was for C89; it made
the difference between having one standard and having another
different standard.

Historcial note: The C89 standard was issued by ANSI in 1989. It was
re-issued by ISO with cosmetic changes (such as section numbering
changes) in 1990; the ISO standard was then adopted by ANSI. Because
of this, I prefer to refer to it as C90 rather than C89, and as ISO C
rather than ANSI C. (ANSI C89 and ISO C90 are the same language,
described by slightly different standard documents.)

ANSI, as a member body of ISO, has adopted the 1999 ISO C standard, so
strictly speaking "ANSI C" should refer to C99, but it usually refers
to C89 or C90.

There was also a minor update in 1995.

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


这篇关于那么我们的标准是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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