On Sat, Mar 24, 2012 at 9:40 AM, Graydon Hoare <[email protected]> wrote: > On 23/03/2012 10:10 PM, Steven Blenkinsop wrote: > > switch vec to a named tycon: vec[10]<int> str[10] > vec[_]<int> str[_] > vec<int> str
One other alternative: C++ template style: vec<int, 10>. ----- I'm not fond of overloading the division operator. I read [1,2,3]/3 as dividing a vector by a scalar. [1,2,3]#3 is a bit harsher to read, but the hash symbol use used to represent a count of items, so it's appropriate. If # is too ugly, what about expressing literals of a sized vector with a cast, as in: [1,2,3] as [int]/3 That would avoid my issue with the operator ambiguity. _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
