post qualifier and template constraint limitation, is there a reason ?

deadalnix via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 17 08:55:31 PST 2015


On Saturday, 17 January 2015 at 16:02:16 UTC, ketmar via 
Digitalmars-d wrote:
> On Sat, 17 Jan 2015 08:33:49 +0000
> deadalnix via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
>
>> This is accepted :
>> auto fun(T)(T T) inout if(...) { ... }
>> 
>> This is not :
>> auto fun(T)(T T) if(...) inout { ... }
>> 
>> Is there a reason ?
> the first is easier to parse, and i it's looking better. the 
> second is
> just unnecessary code in parser and will not be used in the 
> wild to the
> extent that justifies increased complexity.

You obviously have data to back your point, both in term of 
readability, use in the wild and complexity added in the parser. 
Because if you don't, you have no point whatsoever and should 
probably not be posting.


More information about the Digitalmars-d mailing list