|
|
|
|
|
by euroderf
1095 days ago
|
|
In practical terms there's pros & cons I guess, but in general doesn't loading a Context with session variables make code more concise and easier to understand ? DB connections, loggers, and the like. If you really want to pass around Context's in all your API signatures then at least try to make the most of it. Are pitfalls ever actually encountered ? |
|
if you pass a logger to a foo as a parameter in the request context, then missing a logger is a run-time error