Better HN
topnewbestaskshowjobs
Log inSign up

rallyaround

11 karma · joined Apr 13, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

>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.