On Sun, Mar 6, 2011 at 12:24 PM, Peter Alexander <peter.alexander.au@gmail.com> wrote:
On 6/03/11 4:22 PM, bearophile wrote:
So I think it's not worth adding to D.

But if you don't agree... talk.

Bye,
bearophile

I agree.

It would be nice in some situations (like cross and dot products for vectors), but otherwise it's unnecessary and just adds confusion in exchange for a tiny but of convenience in a handful of scenarios.


With C++, for example, Eigen uses expression templates.  How does one do expression templates in D? Could someone rewrite this http://en.wikipedia.org/wiki/Expression_templates this D?