[rust-dev] bikeshed on closure syntax

Stefan Plantikow stefan.plantikow at googlemail.com
Tue Apr 17 17:21:03 PDT 2012



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.


More information about the Rust-dev mailing list