On Tuesday, 11 June 2013 at 18:43:45 UTC, Timothee Cour wrote:
I have found a better way to do that: see
http://forum.dlang.org/post/[email protected]
subject: 'best way to handle UFCS with ambiguous names: using
std.typetuple.Alias!'
syntax: 'arg1.Alias!(std.file.write).arg2'*
see related discussion for reasoning. I'd like to push this as standard way
to deal with ambiguities.

It's clearly an option, but I think it's too syntactically heavy, causing more harm than good (the idea of UFCS is, of course, readability!).

Since these conflicting symbols are in the minority for the vast majority of code units, I think renamed symbols are much, much better.

Reply via email to