Re: [rust-dev] The meaning of 'box ref foo' ?

2014-05-30 Thread Emmanuel Surleau
I think the 'ref' keyword removal is a very good idea. It has bitten me several times, and the idea that pattern matching something essentially performs a side effect (moving the value) leaves me uncomfortable. Cheers, Emm ___ Rust-dev mailing list

Re: [rust-dev] Attributes

2012-10-21 Thread Emmanuel Surleau
On Fri, Oct 19, 2012 at 8:43 AM, John Mija jon...@proinbox.com wrote: Rust has attributes[1] at function-level but (1) the compilation could be faster if they were at file-level, and (2) the project would be more homogeneous and clean. + Instead of to have the attribute #[test] for a

[rust-dev] Polymorphism default parameters in rust

2012-08-02 Thread Emmanuel Surleau
Hi, I'm new to rust, and I'm struggling to find an elegant way to work with default parameters. I'm trying to implement in rust the equivalent of the following Python line: def flag(self, name, desc, short_name=None, max_count=1, banner=None): ... The idea is to offer a simple API (with