support UFCS with fully qualified function names (was in "digitalmars.D.learn")

Dicebot m.strashun at gmail.com
Tue May 21 03:06:30 PDT 2013


On Tuesday, 21 May 2013 at 08:49:27 UTC, bearophile wrote:
> The added syntax is just a pair of ( ).

And you can find plenty of comments in property threads about how 
much this single pair of () matters. In fact it is worse, because 
it redefines meaning of similar syntax pattern ("a.b") within one 
expression.

> And the convenience is to not break your programming flux, 
> requiring to get out of the flow programming 
> (http://en.wikipedia.org/wiki/Flow-based_programming), and 
> introducing auxiliary variables. So maybe the added syntax is 
> worth the convenience.

You can just use local selective imports and alias problematic 
symbol to different name : http://dlang.org/module.html


More information about the Digitalmars-d mailing list