不好意思让我插句话。
I'd just like to interject for a moment.
你所谓的"语法糖",实际上,是抽象化,
What you’re referring to as "syntactic sugar", is in fact, abstraction,
或是我最近开始使用的称呼,无间接消耗抽象化。
or as I’ve recently taken to calling it, zero cost abstraction.
物件导向程式设计本身并不是抽象化,
OOP is not an abstraction unto itself,
而是一个完整运作的无间接消耗抽象化系统中的一个组成元件,
but rather another free component of a fully functioning zero cost abstraction
system
被型别、封装以及高影响力副作用所使用而构成由甲骨文所定义的完整抽象化环境。
made useful by the classes, encapsulation and vital side effects comprising a
full abstraction environment as defined by Oracle.
来源: https://old.reddit.com/r/programmingcirclejerk/comments/q9ignm/oop_is_ju
st_syntactic_sugar_around_passing_a/hgwa6g1/
缩网址: https://is.gd/OwOJaL