On 12/24/13 2:42 PM, Vadim wrote:
Hi,
For a bit of holiday fun, I want to present a Rust implementation of
Knuth's man-or-boy <http://en.wikipedia.org/wiki/Man_or_boy_test>
compiler test.  Can this be improved? Here's
<http://rosettacode.org/wiki/Man_or_boy_test> how it looks in other
languages.

Right off the bat, I would say that would be prettier if we had argument
auto-borrowing

I'm again pretty nervous about this, because this is one of the much-maligned features of C++ references.

if invocation operator would auto-deref

I think I'm OK with this.

and if closure
assignment was in scope to be captured inside the closure itself
(wouldn't have to do dummy init of the B var).

This would prevent the useful `let mut foo = foo` pattern.

Patrick

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

Reply via email to