3 ms·
This is my understanding of what the terms mean as well, but in Rust, any anonymous function seems to be referred to as a "closure"[1], which is what feels stra
by saghm 10y ago
This is my understanding of what the terms mean as well, but in Rust, any anonymous function seems to be referred to as a "closure"[1], which is what feels strange to me.
[1] See the first example here (which only operates on its arguments but is still referred to as a closure): https://doc.rust-lang.org/book/closures.html https://doc.rust-lang.org/book/closures.html