We considered this. It seemed to invite abuse---or at least provide for a lot of choice.

Niko

On 4/17/12 5:21 PM, Stefan Plantikow wrote:

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
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to