On Thursday, 7 February 2013 at 16:33:46 UTC, Andrei Alexandrescu
wrote:
On 2/7/13 9:44 AM, eles wrote:
On Wednesday, 6 February 2013 at 22:10:29 UTC, Robert wrote:
I think the sarcasm is uncalled for. We're doing our best here
and our intent is indeed to have properties emulate fields.
At least it caught a bit of attention... but I agree. Sorry.
Properties emulate fields, but they can't behave 100% like
fields because if they did they'd be fields.
That's no reason to make them functions instead. Or something so
far from fields that becomes cumbersome.
The basic idea is: "properties are (a little more) that fields
with validation and directional access control". That's all.
Notice that in the brackets above there is "more", but also it is
prefixed by "a little".