|
|
|
|
|
by shuaiboi
333 days ago
|
|
bjarne (creator of c++) has a quote about this: Unified function call: The notational distinction between x.f(y) and f(x,y) comes from the flawed OO notion that there always is a single most important object for an operation. I made a mistake adopting that. It was a shallow understanding at the time (but extremely fashionable). Even then, I pointed to sqrt(2) and x+y as examples of problems caused by that view. https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p19... |
|