Should we add `a * b` for vectors?

Mark smarksc at
Sun Sep 24 18:18:38 UTC 2017

On Friday, 22 September 2017 at 17:11:56 UTC, Ilya Yaroshenko 
> Should we add `a * b` to ndslice for 1d vectors?
> Discussion at

Generally I expect that a binary operation denoted by + or * 
would produce an element from the original domain, e.g. 
multiplying two matrices yields a matrix, concatenating two 
strings yields a string, etc. So personally I don't like this 

Note that in the case of 3-dimensional vectors, people might 
confuse this for the cross product. I would go with dot(a,b) and 
cross(a,b) (if you support it).

More information about the Digitalmars-d mailing list