Remus

Namespace rswhite4 at googlemail.com
Thu Nov 22 03:55:07 PST 2012


On Thursday, 22 November 2012 at 07:14:38 UTC, Jacob Carlborg 
wrote:
> On 2012-11-21 21:48, Namespace wrote:
>
>> Hm, I like the Idea.
>> But I would prefer:
>> private:
>>     int _bar in(int val) {
>>         _bar = val;
>>     } out {
>>         return _bar;
>>     }
>
> The point was to make the syntax short. I wouldn't consider 
> this much of an improvement.

IMO is too short not always the best. Therefore I like the C# 
syntax with set and get. The aquivalent of this in D is IMO 'in' 
and 'out'.


More information about the Digitalmars-d-announce mailing list