While hacking in the parser I noticed that
...ast.ident id....
let vec[ast.ident] identifiers = vec();
identifiers += id;
works, but that
let [email protected]_item] v = vec();
let @ast.meta_item x = @spanned(lo, hi, rec(name = name, value = name));
v += x;
doesn't. Is there a rationale for it? Chatting with dherman he expressed
a preference for + always requiring two vectors. I would second that, as
it looks more natural and is what is done in other languages. We can
always add an append method for when there is a single element to be added.
Cheers,
Rafael
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev