We need to kill C syntax for declaring function types

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Oct 4 09:03:15 PDT 2010


On 10/4/10 10:06 CDT, Marianne Gagnon wrote:
> Hi,
>
>>
>> The C syntax is unspeakably ridiculous, useless, and downright
>> dangerous. It shouldn't compile.
>>
>> In the past, Walter has mentioned a weak argument for retaining C-style
>> array declaration syntax, although I personally find it very
>> unconvincing. But C's hideous function pointer syntax is on a whole
>> other level. It's really hurting us. I believe it should be deprecated
>> immediately. But the 'function type' syntax shouldn't be allowed even as
>> a deprecated syntax. It's horrible.
>>
>> Patch included in Bug 4987.
>
> I don't have much weight, but... seconded, definitely :) D needs to be as clean as possible, bad C syntax needs to go.
>
> -- Auria

Don's post was quoted on reddit: 
http://www.reddit.com/r/programming/comments/dm8n8/the_many_faces_of_d_slides_pdf/

Andrei


More information about the Digitalmars-d mailing list