@property needed or not needed?
deadalnix
deadalnix at gmail.com
Wed Dec 5 10:32:15 PST 2012
On Tuesday, 4 December 2012 at 18:28:55 UTC, Rob T wrote:
> On Tuesday, 4 December 2012 at 16:24:27 UTC, Minas Mina wrote:
>> Isn't it possible to have parentheses optional only for UFCS?
>>
>> E.g.
>>
>> Allow:
>> I 5.writeln
>>
>> Dissallow:
>>
>> void f()
>> {
>> writeln("hi");
>> }
>>
>> f; // this currently works
>>
>>
>> I don't know if this is possible to implement.
>
>
> module main;
>
> void f()
> {
> writeln("hi");
> }
>
> main.f; // OK or not?
>
> I think the argument for vs against is simply a coding style
> issue, some like dropping empty braces, some do not.
>
> --rt
It is also a ambiguity issue and the extra need of & to not call
the function (which also introduce ambiguity).
More information about the Digitalmars-d
mailing list