3 ms·
In what way is Rust's use of affine lifetimes insufficient to implement "function programming with no garbage collection"? Genuine question, given my previous i
by tupshin 10y ago
In what way is Rust's use of affine lifetimes insufficient to implement "function programming with no garbage collection"? Genuine question, given my previous interest :)
https://twitter.com/tupshin/status/587275945163251713 https://twitter.com/tupshin/status/587275945163251713
https://twitter.com/tupshin/status/626164932778819584 https://twitter.com/tupshin/status/626164932778819584
- david-given 10y agoIn Rust you're allowed to look at values without consuming them, which pure linear typing doesn't support (it requires exactly one producer and exactly one consumer). Also, in my experience, most Rust programs tend to stash stuff in reference-counted boxes whenever calculating lifetime gets complex; which is reasonable enough (C++ does the same thing), but it is basically garbage collection, and I'd like to find an expressive, functional, non-GCd language which doesn't require this.