泛型编程非常强大。 c应该支持它 [英] generic programming is very powerful. c should support it

查看:71
本文介绍了泛型编程非常强大。 c应该支持它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为c应该适应c ++模板标准,以及命名空间。如果

所以,c在很多情况下可以替换c ++。

解决方案



steve yee写道:


i think c应该适应c ++模板标准,以及命名空间。如果

所以,c在很多情况下可以替换c ++。



我没有收到此评论。你希望C成为C ++所以它可以取代

C ++?它应该是C ++。


你对C语言中的C语言有什么看法?


Tom


Tom St Denis写道:


>

你喜欢什么C那不是C ++吗?


Tom



简单。


没有自动构造器,没有OO方向。


C有很多优点。



jacob navia写道:


Tom St Denis写道:



你对C语言中的C不感兴趣吗?


Tom



简单。


没有自动构造函数,没有OO方向。


C有很多优点。



是的。我的意思是c可以从c ++,

调整模板和命名空间,因为它非常有用并且不会损害c的简单性。这个

不会让c成为c ++,因为c ++的功能中除了泛型和

命名空间还有很多。


i think c should adapt c++ template standard, as well as namespace. if
so, c can replace c++ in many cases.

解决方案


steve yee wrote:

i think c should adapt c++ template standard, as well as namespace. if
so, c can replace c++ in many cases.

I don''t get this comment. You want C to become C++ so it could replace
C++? It WOULD BE C++.

What do you like about C that isn''t in C++?

Tom


Tom St Denis wrote:

>
What do you like about C that isn''t in C++?

Tom

Simplicity.

No automatic constructors, no OO orientation.

C has a lot of advantages.



jacob navia wrote:

Tom St Denis wrote:


What do you like about C that isn''t in C++?

Tom


Simplicity.

No automatic constructors, no OO orientation.

C has a lot of advantages.

yes. what i mean is that c can adapt template and namespace from c++,
because it''s very useful and does not hurt the simplicity of c. this
will not make c become c++, because there''s much more than generic and
namespace in c++''s feature.


这篇关于泛型编程非常强大。 c应该支持它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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