New blog post: Context and capabilities in Rust https://tmandry.gitlab.io/blog/posts/2021-12-21-context-capabilities/ …
-
-
Replying to @tmandry
IMO the closest comparison is dynamically scoped variables. Eg if you use the fluid-let crate (https://github.com/ilammy/fluid-let …), your code looks like: // main fluid_set!(ARENA, BasicArena::new()); deserialize(...) // deserialize let arena = ARENA.get().unwrap();
1 reply 0 retweets 4 likes
Replying to @wcrichton @tmandry
The difference, of course, being that this is all checked at runtime. Pushing dynamic scope into the type system is a great idea!
10:44 AM - 21 Dec 2021
0 replies
0 retweets
4 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
cognitive psychology. PhD