Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
story
0 points
Akronymus
3y ago
0 comments
Share
You could model that with one function taking that dependency and returning a new one with it included. Then you just use the one that has it included instead of the one that doesn't.
0 comments
default
newest
oldest
jcparkyn
3y ago
You still have to construct and pass in that dependency though, along with all of its dependencies, recursively.
j
/
k
navigate · click thread line to collapse