Chaim Frenkel writes:
> You are missing the beauty of vector/matrix operations. The math folks
> really would like to be able to describe the operation wanted and have
> perl do the optimization.

Fine, but make it an option.

> Would adding another character be helpful
> 
>       @result = @a x|| @b?
>       @result = @a ||| @b?

No.  Triple-punctuation operators are scary, says Python Barbie.
We have a lot of operators.  Matrix multiplication et al is *not*
a convincing excuse to add more.

Modifiers also miss the point.  How can matrix ops and regular ops be
in the same language?  Both are useful, but in different situations.
How about:

  use matrix_ops;

to enable this 'consistent' behaviour of the binary ops in list
context?

Nat


Reply via email to