4 ms·
Rust figures out what parts of the environment you are using and makes a closure or lambda. The compiler figures it out for you. This is basically the Rust phil
by hermanradtke 11y ago
Rust figures out what parts of the environment you are using and makes a closure or lambda. The compiler figures it out for you. This is basically the Rust philosophy.
- blaenk 11y agoNot sure what you mean. I understand that the compiler figures out what to do. My point was that it might be useful to remove certain restrictions from empty-environment closures to allow them to be used in more contexts, such as wherever a regular `fn` could be used (like for FFI callbacks).