On Wed, May 18, 2011 at 2:09 PM, Graydon Hoare <[email protected]> wrote:

>
> On this point, at least, I'd welcome a straw poll. Just to figure exactly
> how much everyone thinks "most programmers will balk" at "v:T" rather than
> "T v". Look at these examples and decide:
>
>  fn push(&T[] v, T e) -> T[] {
>      let T[] u = v + [e];
>      ret u;
>  }
>
>  fn push(v: &T[], e: T) : T[] {
>      let u: T[] = v + [e];
>      ret u;
>  }
>

I asked three C# programmers what they thought of the second example and two
said 'looks like F#', which I took to be a positive sign. The other sort of
wrinkled his nose. FWIW, I like the colons for reasons previously stated.

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

Reply via email to