On Wed, Mar 23, 2005 at 06:58:51PM +0100, Thomas Sandlaß wrote:
: Larry Wall wrote:
: >my @array of Int;
: >
: >is really short for
: >
: >my @array is Array of Int;
:
: How does 'is' relate to 'does'? I mean is the above @array
: ready for operation?
Yes, I think "is" typically implies
Larry Wall wrote:
my @array of Int;
is really short for
my @array is Array of Int;
How does 'is' relate to 'does'? I mean is the above @array
ready for operation? Whilst
my @array does Array of Int;
still needs a compatible object to be put into @array?
Like so:
class Blubber does Array of
On Fri, Mar 18, 2005 at 09:36:49PM -0500, Chip Salzenberg wrote:
: Nobody on #perl6 today could answer this one. Is:
: Str | Int where { $_ }
: the same as:
: (Str | Int) where { $_ }
: or:
: Str | (Int where { $_ })
: ?
"where" binds looser than |, but it's a member of a select group
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 wh
Nobody on #perl6 today could answer this one. Is:
Str | Int where { $_ }
the same as:
(Str | Int) where { $_ }
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?
W