<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 27 September 2017 at 17:41, Ilya Yaroshenko via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Wednesday, 27 September 2017 at 04:59:10 UTC, Manu wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
On 26 September 2017 at 21:41, Atila Neves via Digitalmars-d < <a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>> wrote:<br>
<br>
</span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Friday, 22 September 2017 at 17:11:56 UTC, Ilya Yaroshenko wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Should we add `a * b` to ndslice for 1d vectors?<br>
Discussion at <a href="https://github.com/libmir/mir-algorithm/issues/91" rel="noreferrer" target="_blank">https://github.com/libmir/mir-<wbr>algorithm/issues/91</a><br>
<br>
</blockquote>
<br>
I'd say yes.<br>
<br>
Atila<br>
<br>
</blockquote>
<br>
<br></div></div><span class="">
Just remember, it's okay to vote no! Even if it makes you a bigoted dick ;)<br>
In this case, I think 'no' is the only reasonable choice.<br>
If this is going to seriously be considered, then ndslice should definitely<br>
be renamed to 'matrix'.<br>
<br>
An alternative solution might be to introduce a wrapper of ndslice called 'matrix' that supports matrix mul...?<br>
</span></blockquote>
<br>
I would prefer outer operator overloading be added to D instead of type wrappers. So a user can import a library for operations, rather then library of wrappers. --Ilya<br>
</blockquote></div><br></div><div class="gmail_extra">I don't really think this will work in a reasonable way in D even if it were added.</div><div class="gmail_extra">D does not have ADL, which will almost certainly lead to _very_ nasty surprises in behaviour.</div></div>