3 ms·
I think of context parameters being a replacement for dependency injection. What parts of OOP are replaced by context params? State?
by chamomeal 1y ago
I think of context parameters being a replacement for dependency injection. What parts of OOP are replaced by context params? State?
- gugagore 1y agoI think of context parameters as a replacement for dynamic scoping. I think it can be all of these things, which in my opinion partially undermines the GP's point. Recommended related musings: https://wiki.c2.com/?ClosuresAndObjectsAreEquivalent https://wiki.c2.com/?ClosuresAndObjectsAreEquivalent