>you can't pass a dependency to its dependent until the dependency has been constructed.
> But it may have its own dependencies. So now there is a topological sorting problem.
I guess I just don't see the problem.
That solves itself naturally through normal programming.
Some function takes A as argument? Well I obviously make that A first.
A requires B to setup? Well obviously I make that first.
I don't need to "sort" anything, it just follows naturally from the types and constraints of the API.
I guess I just don't see the problem.
That solves itself naturally through normal programming. Some function takes A as argument? Well I obviously make that A first. A requires B to setup? Well obviously I make that first.
I don't need to "sort" anything, it just follows naturally from the types and constraints of the API.