develooper Front page | perl.perl6.language | Postings from January 2004

RE: Semantics of vector operations

Thread Previous | Thread Next
From:
Austin Hastings
Date:
January 20, 2004 20:00
Subject:
RE: Semantics of vector operations
Message ID:
ICELKKFHGNOHCNCCCBKFAEJECJAA.Austin_Hastings@Yahoo.com


> -----Original Message-----
> From: Larry Wall [mailto:larry@wall.org]

> On the other hand, it's possible that we should extend the visual metaphor
> of »« and apply it asymmetrically when one of the arguments is expected to
> be scalar.  That would mean that your last three lines would be written:
>
>     (1,2,3) »+« (4,5,6)
>     $a »+« $b
>     $x +« $y
>
> What's more, a unary vector op would then just be
>
>     -« @bar
>
> This also lets us use an array in its scalar sense for its length:
>
>     @foo »+ @bar

If only from a syntax-highlighting point of view, this is a horrible
proposal. Make it die.

=Austin


Thread Previous | Thread Next


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