Front page | perl.perl6.language |
Postings from May 2001
Re: Larry's Apocalypse 1
Thread Previous
|
Thread Next
From:
Kirrily Robert
Date:
May 4, 2001 13:50
Subject:
Re: Larry's Apocalypse 1
Message ID:
E14qKIw-0007Xm-00@tanqueray.infotrope.net
In lists.projects.perl.language, you wrote:
>It's likely to work better in Perl 6. To mean what it currently
>means, you'll probably have to write something like:
>
> @foo[0] := <STDIN>;
>
>The colon here is not functioning merely to make the assignment look
>like Pascal. It means, in this case, the following operator is
>intended to work on arrays, not scalars. Hence, :+ would be pairwise
>array addition.
Why a colon? It has no particular connection to arrays that I can see,
and it will confuse people who know what := means in Pascal.
An (ugly) alternative might be @= or @+ which at least have a connection
to the @ sign in the array name and could be read as "array assignment"
and "array addition".
K.
--
Kirrily 'Skud' Robert - skud@infotrope.net - http://infotrope.net/
Anyone who wants to can call themselves a pervert or a queer, but slut
is a compliment you have to earn.
Thread Previous
|
Thread Next