property syntax strawman
Nick Sabalausky
a at a.a
Sun Aug 2 21:31:39 PDT 2009
"Rainer Deyke" <rainerd at eldwood.com> wrote in message
news:h55maa$1140$1 at digitalmars.com...
> Nick Sabalausky wrote:
>> "Walter Bright" <newshound1 at digitalmars.com> wrote in message
>> news:h53g3i$elk$1 at digitalmars.com...
>>> bool empty { ... }
>>> void empty=(bool b) { ... }
>>
>> I think that if D starts to make a habit of aping the ugly C++ approach
>> to
>> adding new features (as this does), then we may as well just use C++.
>
> 'prop=' for property setters is used by Io, not C++. D already much
> closer to C++ than Io. (BTW, Io doesn't have operators in the same
> sense that C++ and D do. '+' and 'prop=' are just identifiers in Io.)
>
What I meant was that, just as when C++ adds a feature, it's the quickest
easiest kludge around that satisfies some of the technical requirements
without regard to how much of a butt-ugly hack it is.
More information about the Digitalmars-d
mailing list