3 ms·
What exactly are you arguing for? Closures can be implemented using closure conversion as a derived form in most languages. That's how you compile the code in t
by fmap 10y ago
What exactly are you arguing for? Closures can be implemented using closure conversion as a derived form in most languages. That's how you compile the code in the first place...
The point is that you reason about closures as ordinary functions with local assumptions. You don't need to know how they are implemented at all. On the other hand, in Rust you need to be aware of the implementation in order to use higher-order functions effectively.
- steveklabnik 10y agoI'm arguing that the statement I quoted in my above comment is incorrect; closures are implemented with functions, not the other way around.