C-Style declarations, are they here to stay?!! Walter?
Georg Wrede
georg.wrede at nospam.org
Fri Mar 31 16:17:20 PST 2006
BCS wrote:
> Walter Bright wrote:
>> Sean Kelly wrote:
>>> Hasan Aljudy wrote:
>>>
>>>> So Walter, I would like to please hear your opinion/decision
>>>> about C-Style declarations; are they here to stay? or will they
>>>> be deprecated at some point?
>>>
>>> I'm hoping they will be deprecated before 1.0. While this may
>>> mean a small amount of extra work porting headers, I think it's
>>> worthwhile.
>>
>> I left them in because they do not cause any ambiguities or trouble
>> with the D declaration syntax. It also significantly reduces the
>> amount of work needed to translate code to D. I don't see a
>> compelling reason to remove them; just don't use them if you don't
>> like them.
>
> http://www.digitalmars.com/d/faq.html#q3
>
> from http://www.digitalmars.com/d/overview.html
>
> "Major Goals of D [...] * Make D substantially easier to implement a
> compiler for than C++."
>
> If people don't want it, then it just adds unnecessarily to the task
> of making a compiler.
Count me in for the removal.
(I do know "some" people find them handy, but this particular detail
does not stand in line with other D differences from C/C++ of lesser
visibility.)
More information about the Digitalmars-d
mailing list