Wht std.complex is needed?

bearophile bearophileHUGS at lycos.com
Mon Apr 6 03:26:58 PDT 2009


Sam Hu Wrote:
>What's the disadvantage to have the built-in type of i-type?<

I think the answer is: It's another type added to the language, with its specific semantics, so it adds a bit of complexity to the language. And most people today don't seem to use complex types in D1 much, so they think they don't want to pay for such extra complexity.

A better question can be: "What's the advantage of having a built-in imaginary type?" :-)
You can find an answer here, from page 11:
http://www.eecs.berkeley.edu/~wkahan/JAVAhurt.pdf
But maybe those ideas aren't much true anymore today.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list