Closed
Description
vec::<T,U,V,W::X::Y<Z>>![1,2,3,4];
is valid syntax and compiles to a regular vector.
This is because macros use Path
s, not Ident
s as their names. Multi-segment paths are disallowed, but the path can have type parameters.
We can move macros to Ident
s, however this would not be backwards compatible since anyone using vec::<T>![1,2]
would get a syntax error (even though the original syntax is meaningless). It's still a bug, so perhaps we can get away with this breaking change.
Thoughts?