On 1 Dec 2013, at 1:45 pm, Patrick Walton <[email protected]> wrote:
> the experiment of using blocks in place of RAII for stuff like "with_c_str" > or "unkillable" has failed: it leads to too much rightward drift. > > Patrick I guess I can agree with that. I remember when I first started with Rust doing: `some_c_func(“hi”.with_c_str(|s| s))`, which completely negates the safety guarantees of the closure. How would this look with RAII? By ‘rightward drift’ do you mean in terms of multiple nested closures? ~Brendan _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
