Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
newaccount2021
· 4y ago · 0 comments
This is exactly what I am doing, but you shouldn't have to modify the request itself to pass temporary state
Comments
[–]
fasterthanlime
4y ago
Eh, that's definitely a matter of taste. You definitely shouldn't have to pass an additional parameter everywhere you want context there's no absolutes here, just preferences.
[–]
masklinn
4y ago
Why not? Given Rust's semantics it's really no different than how Go's Context seems to be used, just more efficient.