Hacker News new | ask | show | jobs
by chamomeal 261 days ago
I think of context parameters being a replacement for dependency injection. What parts of OOP are replaced by context params? State?
1 comments

I 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