Make dur a property?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Jan 23 15:39:49 PST 2013


On 1/23/13 5:46 PM, Adam D. Ruppe wrote:
> On Wednesday, 23 January 2013 at 22:24:20 UTC, Nick Sabalausky wrote:
>> that provides absolutely no useful value whatsoever.
>
> Do you think so many of us would be arguing for it and using it if it
> was of no value whatsoever?
>
>> Note that properties are *not* functions
>
> Indeed, which is why I separate out -property, a stupid waste of time,
> and @property, a good idea.
>
> Parenthesis and properties have nothing to do with each other. But when
> @property was proposed, we didn't talk about what it *is*
> (indistinguishable semantics from the return value), but instead what it
> *looks like* (must not be called with parenthesis).
>
> That's where all this pain comes from. Two separate features got
> intertwined due to a sloppy DIP.

We need a good DIP on this. UFCS has destroyed all arguments in favor of 
requiring parens. There is no question we must do this. Anyone inclined 
toward writing a detailed DIP?

Andrei


More information about the Digitalmars-d mailing list