post qualifier and template constraint limitation, is there a reason ?
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jan 17 08:02:05 PST 2015
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150117/2def7177/attachment.sig>
More information about the Digitalmars-d
mailing list