@property needed or not needed?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Nov 19 10:14:22 PST 2012


On 11/19/12 12:30 PM, Michel Fortin wrote:
> On 2012-11-19 06:52:11 +0000, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> said:
>
>> On 11/19/12 1:02 AM, Rob T wrote:
>>> So what's up with @property?
>>
>> It's a mistake on top of another. We need to redesign it to such that
>> the keyword '@property' is only required in cases that otherwise would
>> be ambiguous (functions returning functions).
>
> …or functions returning a type with an opCall.
>
> What about template functions with a parametrized return type that will
> sometime be ambiguous and sometime not depending on the template
> parameters?
>

Let's put all of these cases in a DIP so we can analyze them.

Thanks,

Andrei


More information about the Digitalmars-d mailing list