Hi,

The Box is a welcome change over ~.

Any way the closure syntax can improve. Instead of having 2 syntaxes be
explicit of what is captured.

let x = 3;

fn  fun_arg       (arg: int) -> () { println!("{}", arg + x) }  //
cannot capturelet closure_arg = (arg: int)|x| -> () { println!("{}",
arg + x) }; // x is explicitly captured


Suminda
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to