[rust-dev] bikeshed on closure syntax
niko at alum.mit.edu
Tue Apr 17 18:46:21 PDT 2012
We considered this. It seemed to invite abuse---or at least provide for
a lot of choice.
On 4/17/12 5:21 PM, Stefan Plantikow wrote:
>> 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
> Rust-dev at mozilla.org
More information about the Rust-dev