Complexity nomenclature

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Fri Dec 4 15:21:10 PST 2015


On Fri, Dec 04, 2015 at 05:48:03PM -0500, Andrei Alexandrescu via Digitalmars-d wrote:
> On 12/04/2015 03:43 PM, Walter Bright wrote:
> >On 12/4/2015 10:49 AM, Dmitry Olshansky wrote:
> >>Was vaguely terrified reading this whole thread until hitting this
> >>gem. Seems like a creative use for UDA.
> >
> >Yeah, I think it puts UDA on the map!
> >
> >Instead of string arguments, though, I suggest enums.
> 
> "Even better".
> 
> http://dpaste.dzfl.pl/50340e189f92
> 
> That code is actually remarkably complete, with algebra and remarkable
> constants.
> 
> Pretty crazy, yo. Thanks all for the great ideas. D is a remarkable
> language.
[...]

Nice, very nice!

But ... opMul? I thought that was deprecated? Shouldn't we be using
opBinary!"*" instead?


T

-- 
Food and laptops don't mix.


More information about the Digitalmars-d mailing list