develooper Front page | perl.perl6.language | Postings from March 2005

Re: Precedence of "where" ("of", "is", "will")?

Thread Previous
From:
Luke Palmer
Date:
March 19, 2005 02:22
Subject:
Re: Precedence of "where" ("of", "is", "will")?
Message ID:
20050319102445.GA5359@navi.cx
Chip Salzenberg writes:
> Nobody on #perl6 today could answer this one.  Is:
>     Str | Int where { $_ }
> the same as:
>     (Str | Int) where { $_ }

I think it's this one.  The junctive operators naturally feel pretty
tight precedence, and named operators feel loose. 

> or:
>     Str | (Int where { $_ })
> ?
> 
> Followup questions, Mr. President:
> 
> What kind of operators are "where", "of", "is", and "will"?
> Is there a reason that S03 doesn't list them?
> What are their precedence(s)?

`will` and `is` are trait auxiliaries (see A12).  I don't know the names
of the other ones.  Maybe they're type modifiers.  Maybe they're also
trait auxiliaries.

Luke

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About