[rust-dev] Release candidates

Brian Anderson banderson at mozilla.com
Thu Jul 12 11:32:37 PDT 2012


On 07/12/2012 07:56 AM, Graydon Hoare wrote:
> On 11/07/2012 9:34 PM, Sebastian Sylvan wrote:
>
>> The hello world example on the website no longer compiles. This is the
>> only way I could make it compile:
>> for (&[1,2,3]).each |i| {
>>     println(#fmt("hello, %d", i));
>> }
>>
>> Is that right? That parenthesis around the vector literal is a bit
>> unfortunate. I couldn't get rid of the ampersand because it would fail
>> to compile with a "deprecated vec expr" error.
>
> Curious; is &[ not binding "really tight"? Like .. in the parser? I
> thought we agreed it sort of had to be that way.
>

I think dot has the highest precedence of all.



More information about the Rust-dev mailing list