Why is complex being deprecated again?

Lars T. Kyllingstad public at kyllingen.net
Tue Apr 17 13:50:05 PDT 2012


On Tuesday, 17 April 2012 at 18:46:13 UTC, Norbert Nemec wrote:
> On 16.04.2012 05:22, Mehrdad wrote:
>> So we're removing it to reduce the number of keywords? ...Why?
>> Is the keyword-ness of "cdouble" and "ifloat", etc. causing 
>> problems for
>> people?
>
> Not problems, but serious eye sores: Personally, I am really 
> happy that "ireal" and "creal" are going to drop out of the 
> language specs. Now D finally has the chance of being taken 
> seriously by mathematicians...
>
> (Anyone, who does not get it: imagine a language that calls 
> floating point values "fint" because they are "fractional 
> integers". The same language would probably also have the 
> keywords "cvar" for "constant variable" and "ntrue" for "not 
> true"... :-)  )

Hear, hear! These names have always made me me cringe. (Similar, 
though not nearly as annoying, is the use of "enum" to declare 
manifest constants.)

However, I suspect that when the builtins get removed, aliases 
will be introduced in their place in std.complex.

-Lars


More information about the Digitalmars-d mailing list