返回信息流What are the diffences between a C++ namespace and a C prefix?
Since there's nothing like `import a as b`.
这是一条镜像帖。来源:北邮人论坛 / cpp / #73119同步于 2013/8/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
[讨论]What are the diffences between a C++ namespace and a
qiukun
2013/8/8镜像同步13 回复
订阅后,新回复会通过你的通知中心匿名送达。
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.
But you will hate C++. Please stick to Python.
【 在 qiukun 的大作中提到: 】
: Thanks. i'll love namespace.
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.
:
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?
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.
:
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)