Does D have too many features?
Alex Rønne Petersen
xtzgzorex at gmail.com
Mon Apr 30 12:56:22 PDT 2012
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.
--
- Alex
More information about the Digitalmars-d
mailing list