Am I evil for this?
jmh530
john.michael.hall at gmail.com
Sat Oct 15 14:21:22 UTC 2022
On Friday, 14 October 2022 at 21:15:12 UTC, H. S. Teoh wrote:
> [snip]
> For this specific example, though, I'd say just overload *.
> Matrix multiplication is called "multiplication" because it
> generally *does* behave like a multiplicative arithmetic
> operator. As opposed to like array manipulation or I/O. So I'd
> call it an appropriate use of operator overloading in this case.
>
>
> T
D's built-in slices already have * as element-wise
multiplication. It makes things a little more confusing to switch
it up.
More information about the Digitalmars-d
mailing list