On Saturday, February 09, 2013 13:01:58 Robert wrote: > > arrays are by far the most common type of range, I think that it's > > just asking > > for trouble to allow their front or back to be used with parens. > > Except you ebrace the idea that front is a function (property or not) > and make parens work in all cases. Why not do it the other way round, > front has to be a function property or not. > > Seems to work far better, it is a simple rule. No performance penalty as > trivial set/get can easily be lined in, ...
It fails miserably when the element type of a range is callable. That's the main reason that @property was introduced in the first place. - Jonathan M Davis
