3 ms·
I'm not sure how this can be a criticism of OO. classes are tuples with named members, methods are procedures with an implicit param. There is no OO tax. the be
by nh23423fefe 4y ago
I'm not sure how this can be a criticism of OO. classes are tuples with named members, methods are procedures with an implicit param. There is no OO tax. the benefits are obvious. clarity in data dependence, encapsulation, code reuse.
I dont see how OO causes coupling or indirection.
- slackdog 4y ago> methods are procedures with an implicit param. Eh, not really? In single-dispatch, one of the arguments is often syntactically distinct from the others and is treated specially, but I wouldn't say that it's implicit. And with multiple dispatch object systems, all arguments are treated the same.