我觉得大多数语言都倾向于用ruby和dart之类的“一切都是对象”这样的语句来证明它们是面向对象的
另一方面,像这样的语句(Java完全引用)
The primitive types represent single values—not complex objects. Although Java is otherwise completely object-oriented, the primitive types are not. They are analogous to the simple types found in most other non–object-oriented languages. The reason for this is efficiency. Making the primitive types into objects would have degraded performance too much.
那么为什么其他语言将原语实现为对象呢
目前没有回答
相关问题 更多 >
编程相关推荐