"with" still sucks + removing features + adding features

Christopher Wright dhasenan at gmail.com
Mon May 18 16:10:17 PDT 2009

bearophile wrote:
> When I see a syntax like:
> alias foo bar;
> I often have troubles understanding if the new name is bar or foo.
> A syntax like:
> alias foo as bar;
> Is less ambigous.
> Now feel free to go postal :-)

The more common suggestion is:
alias bar = foo;

This has the advantage of looking like renamed imports and not adding 
keywords. Additionally, C# uses similar syntax:
using Name=My.Really.Long.Namespace.CollidingName;

More information about the Digitalmars-d mailing list