Alternative template instantiation syntax
a
a at a.com
Fri Jan 27 14:20:46 PST 2012
On Friday, 27 January 2012 at 22:02:55 UTC, F i L wrote:
> Timon Gehr wrote:
>> alias MyFoo = Foo!q{
>>
>> }
>
> This syntax makes a lot of sense, but why have the '=' at all?
> Why not just:
>
> alias Num float;
> alias MyFoo Foo!q{
>
> };
I guess one reason is that it fits better with the rest of the
language, it feels more natural. Also, wouldn't your proposal
require making the current syntax illegal and breaking pretty
much all of existing D code?
More information about the Digitalmars-d
mailing list