On Tue, 30 Jan 2007, Riccardo (Jack) Lucchetti wrote:
On Tue, January 30, 2007 12:56, Sven Schreiber wrote:
> (btw, a vertical concatenation operator wouldn't hurt ;-)
I was thinking the same thing a few weeks ago. The one thing
that stopped me from implementing this is that the "|"
character, almost unversally used to indicate vertical
concatenation in matrix languages, is already taken by the "or"
operation.
It it feasible, in principle, to distinguish between the two
uses: theoretically, given the expression "a | b" we first check
that a and b are matrices with the same number of columns; if
not, "|" should be interpreted as "or". I fear this could end up
being a bit confusing, though.
Confusing for the parser to have symbols that map to different
operators, with different levels of precedence, depending on
context.
I've added vertical concatenation in CVS, for the moment using '`'
(backtick) as the operator symbol. If anyone has a better idea,
I'll be happy to listen. Backslash or '#' would be other
possibilities.
Allin.