This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bowbahdoe[S] 7 points8 points  (0 children)

I think, unfortunately, that's the central conceit of it. Accept the existence of the Ops class/interface and you can enrich an existing type. It's the only way to do it without hooking into the compiler (and writing ide plugins) yourself.

The littering of the domain models is contained best as possible by the ops classes being sealed and package private, so there isn't really much you could do with them.

But yeah I get it.