Does D have too many features?
Jacob Carlborg
doob at me.com
Tue May 1 04:20:10 PDT 2012
On 2012-04-30 21:56, Alex Rønne Petersen wrote:
> On 30-04-2012 21:43, Jacob Carlborg wrote:
>> On 2012-04-30 17:27, Alex Rønne Petersen wrote:
>>> On 30-04-2012 09:58, Jacob Carlborg wrote:
>>
>>>> I would rather have @property on instance variables be a syntax sugar
>>>> for implementing property functions. Basically virtual instance
>>>> variables.
>>>>
>>>
>>> Then there better be a way to mark them final too. ;)
>>>
>>
>> Then what's the point of having a method? Just use a public instance
>> variable.
>>
>
> Encapsulation. I want contracts in my properties.
>
Aha, didn't thin of that. Sure, why not.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list