我有一个朋友辩论,我们想知道为什么这么多的开源项目已经决定去用C代替C ++。项目如Apache,GTK,Gnome和更多的选择了C,但为什么不C ++,因为它几乎是一样的吗?
I'm having a debate with a friend and we're wondering why so many open source projects have decided to go with C instead of C++. Projects such as Apache, GTK, Gnome and more opted for C, but why not C++ since it's almost the same?
我们是precisely寻找这将导致这些项目(不只是那些我已经上市,但所有的C项目)去用C代替C ++的原因。主题可以是性能,易于编程,调试,测试,概念等。
We're precisely looking for the reasons that would have led those projects (not only those I've listed but all C projects) to go with C instead of C++. Topics can be performance, ease of programming, debugging, testing, conception, etc.
推荐答案C是非常轻便,更比C ++ 10年前。
C is very portable, much more than C++ was 10 years ago.
此外,C是非常在Unix的传统根深蒂固。详情请阅读 Unix的编程艺术,有关的 Unix和一般 OO,以及有关的特定的语言在UNIX (包括C和C ++)。
Also, C is very entrenched in the Unix tradition. Read more in 'The Art of Unix Programming', about Unix and OO in general, and about specific languages on unix (including C and C++).
更多推荐
为什么大多数在C最大的开源项目?
发布评论