Hello .NET, D Here Calling

Chad J gamerchad at __spam.is.bad__gmail.com
Tue Dec 23 19:45:06 PST 2008


Daniel de Kok wrote:
> On 2008-12-23 22:10:53 +0100, "Nick Sabalausky" <a at a.a> said:
>> It's far more than a mere presumption:
>>
>> class Foo{
>>   public int x;
>> }
>>
>> // vs
>>
>> class Foo{
>>   private int _x;
>>   public int getX() {
>>       return x;
>>   }
>>   public void setX(int x) {
>>       _x = x;
>>   }
>> }
>>
>> It would take a Java mentality to find the second to be every bit as
>> good as
>> the first. Yes, it's functionally equivilent, but it's a horrid mess
> 
> I happen to disagree :^).
> 

I suppose you're right.  The horribly twisted mind of a C++ coder could
find that attractive as well.



More information about the Digitalmars-d mailing list