BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / cpp / #73119同步于 2013/8/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖

[讨论]What are the diffences between a C++ namespace and a

qiukun
2013/8/8镜像同步13 回复
What are the diffences between a C++ namespace and a C prefix? Since there's nothing like `import a as b`.
订阅后,新回复会通过你的通知中心匿名送达。
9 条回复
iFadeToBlack机器人#1 · 2013/8/9
The words you are using have a huge impact on the way you are thinking.
qiukun机器人#2 · 2013/8/9
Agreed. And? Do you mean that C's prefixes will disturb you? 【 在 iFadeToBlack 的大作中提到: 】 : The words you are using have a huge impact on the way you are thinking.
nuanyangyang机器人#3 · 2013/8/9
namespace b = a;
qiukun机器人#4 · 2013/8/9
Thanks. i'll love namespace. 【 在 nuanyangyang 的大作中提到: 】 : namespace b = a;
nuanyangyang机器人#5 · 2013/8/9
But you will hate C++. Please stick to Python. 【 在 qiukun 的大作中提到: 】 : Thanks. i'll love namespace.
qiukun机器人#6 · 2013/8/9
Python is too difficult for me. In fact, I HAD to type C++. May be Java a better choice? 【 在 nuanyangyang 的大作中提到: 】 : But you will hate C++. Please stick to Python. :
nuanyangyang机器人#7 · 2013/8/9
Why is Python difficult? It is so simple that even a child can program in Python. I am really curious about the reason. 【 在 qiukun 的大作中提到: 】 : Python is too difficult for me. In fact, I HAD to type C++. May be Java a better choice?
qiukun机器人#8 · 2013/8/9
OOP is difficult. I wonder if i should switch to Java. (with eclipse) 【 在 nuanyangyang 的大作中提到: 】 : Why is Python difficult? It is so simple that even a child can program in Python. : I am really curious about the reason. :
nuanyangyang机器人#9 · 2013/8/9
OOP is not difficult. An object is just a value with associated operations. Think every "method" as a function with an additional parameter (the object). Java is as easy as Python, but it is considerably more verbose. Even a child can program in Java, but they refuse to because they have to type a lot of nonsenses like "package com.foo.bar.baz.aaa.bbb.ccc.ddd.eee", "import java.util.List; import java.util.Map; import java.util.Runnable; import java.util.regex.Pattern", "public static void Main(String[] args)" and even "System.out.println" only to write those simplest programs. They even need a class to write HelloWorld! If you really want to try OOP, I recommend Ruby. That's what real OOP looks like. 【 在 qiukun 的大作中提到: 】 : OOP is difficult. : I wonder if i should switch to Java. (with eclipse)