Contexts and capabilities in Rust
https://tmandry.gitlab.io/blog/posts/2021-12-21-context-capabilities/
·
I recently stumbled on a promising idea to solve what I’ll call the “context problem” in Rust. The idea takes inspiration from features in other languages like implicit arguments, effects, and object capabilities. While this is at the early stages of development, I’m sharing it here to get more perspectives and ideas from the Rust community.
The problem Very often in programming we find ourselves needing access to some context object in many places in our code.