Hi,
>
> 2. You may omit the last argument of a function that expects a closure
> using a syntax like the following:
Independent from the lambda syntax (I like the ruby/smalltalkish block syntax
that is in place now), is there a reason why this is limited to closures?
It may be visually appealing to be able to pass other expressions as the last
argument in a similar fashion.
x.append() [1,2,3,4]
print(f) "foo"
-- Stefan.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev