> This seems to make the feature not very useful. Is there a way we can get
> around this limitation?

Why do you say that? It is trivial to get around this limitation, but
it seems that block calls like this in expression position would just
look even weirder than the form where you have the block inside the
parentheses. Compare

    let sum = reduce({|a, b| a + b}, myseq) + 2;

    let sum = reduce(myseq) {|a, b| a + b} + 2;

Do you prefer the second? I figured this would just be a trick to make
statement-style loops look better.

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

Reply via email to