Thanks Burak. I think that makes sense. You can perhaps still think of that
approach as defining the interface "where it's used", even if it's not quite
as close to where it's used as is technically possible. It still has its
caveats,
but it does seem better than defining it where it's implemented
On Tue, Sep 26, 2023 at 6:18 AM Jerry Londergaard
wrote:
>
>
> Do I need to be re-defining this interface everywhere? I guess
> an alternative would be to just re-use the `C.DoThinger`, but I feel like
> this doesn't seem right as now A is directly importing C, which seems to
> 'break' the abstr
Hello,
I'm trying to understand if I'm going overboard with defining interfaces
where they are used (i.e am I re-defining them nu-necessarily). Here's an
example. The interface is passed down from A->B->C where C (and only C)
calls the DoThing() method of the interface:
---