The problem with @properties in D

Robert Jacques sandford at jhu.edu
Tue Dec 13 19:02:45 PST 2011


On Tue, 13 Dec 2011 13:02:46 -0500, Don <nospam at nospam.com> wrote:

> On 13.12.2011 17:03, Robert Jacques wrote:
>> On Tue, 13 Dec 2011 03:50:13 -0500, Manu <turkeyman at gmail.com> wrote:
>>
>>> On 13 December 2011 09:53, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
>>>
>>>> On Tuesday, December 13, 2011 07:28:18 F i L wrote:
>>>> > Can someone please explain why @property and @disabled have a '@'
>>>> > symbol in front of them?
>>>>
>>>> So that they don't have to be keywords.
>>>>
>>>
>>> What is the rule for use of '@'?
>>> It does feel inconsistent to me too...
>>>
>>
>> @word are attributes. Attributes were added late to the D language in
>> order to minimize the effects of adding new keywords,
>
> That isn't true. Reducing keywords was NOT presented a primary rationale
> for adding attributes.

Thanks for clearing up my memory. Was the primary rational user attributes or something else?


More information about the Digitalmars-d mailing list