[Challenge] implementing the ambiguous operator in D

Peter Alexander peter.alexander.au at gmail.com
Fri Sep 3 02:03:28 PDT 2010


== Quote from Nick Sabalausky (a at a.a)'s article
> Interesting thing, but devil's advocate: What would be the
uses/benefits of
> that versus just having "for each element" versions of the
operators?

Well the obvious benefit is that you don't have to create all
those extra version -- you get them all for free.


> Also, "ambiguous" seems like a rather odd name for what it does.
I don't see
> how ambiguity has anything to do with it. That disconnect made
it difficult
> at first for me to understand what it was. It's more like
an "elementwise"
> or something.

I agree, it's a pretty bad name. I'd call it "all" or something.


More information about the Digitalmars-d mailing list