prototype-based OO 基于原型的面向对象
I actually think that prototype based OO is more natural, and easier to understand than class based OO.
实际上我认为基于原型的OO要比基于类的OO更自然,也更容易理解。
And there is no obvious problem in power, since you can always do class-based OO by convention, if you want.
从功能上来说这没有什么明显的问题,只要你想,你总可以根据规约实现基于类的OO。
I think class based OO have to be learned, and that most people will find prototype based OO more intuitive once they unlearn the class based OO mantra.
我觉得基于类的OO是需要学习的,而大多数人都会发现基于原型的OO更加直观,前提是他们并没有被人灌输基于类的OO的所谓优点。
应用推荐