On Tuesday, 9 June 2015 at 15:06:13 UTC, Kagamin wrote:
Well, if you have full encapsulation, then you don't have extension methods and consequently don't have this issue.

Well, you can, because you don't access object internals, but the point was exactly that extension methods can make programs harder to read.

This doesn't look like full encapsulation if the type behavior is extended this way.

It is not an extension. It is a function returning a reference object that holds a pointer to the object and the new interface methods you want it to have. It is explicit so it does not make programs harder to read.

Reply via email to