On 7/30/13 10:39 AM, Graydon Hoare wrote:
Really? How would you resolve it? You have to decide after seeing "{x:"
which grammar to switch into parsing. Currently we go with the pattern
grammar there.
Struct literals have to be prefixed with the type of the struct (as we
don't have structural record labels anymore). So we don't have arbitrary
`{x:` appearing inside patterns anymore; rather it's `Foo {x:`.
Patrick
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev