3 ms·
I find the fluent style programming to be much more readable. But in OOP you would define an IHittable interface or use AOP like you suggested.
by scarface74 8y ago
I find the fluent style programming to be much more readable. But in OOP you would define an IHittable interface or use AOP like you suggested.
- fenomas 8y agoYou can define iHittable and get the code to compile, but it doesn't make the actual issue (polymorphism) any easier to tackle. I think eschewing inheritance in favor of aspects is definitely the way to go. (Of course, you can wrap everything in a fluent-style interface either way - that part is orthogonal to all the rest.)