On Friday, 27 January 2012 at 22:20:47 UTC, a wrote:
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?
Every proposal here would break D, so I'm not sure what you mean
by "my" proposal. Also, because aliases are non-lvalue
definitions, I don't think '=' makes a lot of sense, but I'm not
an expert on the matter.