3 ms·
On referential transparency, I couldn't tell from the blog but are the Rust futures memoized/cached? If they are, then they're still not referentially transpar
by kag0 7y ago
On referential transparency, I couldn't tell from the blog but are the Rust futures memoized/cached?
If they are, then they're still not referentially transparent. But if they aren't then it might be a bit of a surprise to developers coming from other languages (especially ones not familiar with something like an IO monad).
- gdxhyrd 7y agoRust futures are just types that implement an interface providing a method to advance execution if possible and signal when they have more work to do.