4 ms·
> a transparent auto-wired dependency injection. I think you're looking for dynamic scopes. These are annoying for most programming, since you can't just look
by wolfgang42 9y ago
> a transparent auto-wired dependency injection.
I think you're looking for dynamic scopes. These are annoying for most programming, since you can't just look around nearby the way you can with lexical scopes, you have to figure out what the call stack for the function would look like. When used well, however, they can simplify things considerably.
UNIX environment variables and stdin/stdout/stderr are dynamically scoped. Common Lisp seems to call these 'special variables' and has an "earmuff" convention of putting asterisks around their name to set them off.
- kazinator 9y ago> I think you're looking for dynamic scopes. Thanks for writing the comment I now don't have to.