writeln, UFCS and flip

ixid nuaccount at gmail.com
Thu Apr 25 09:23:23 PDT 2013


On Thursday, 25 April 2013 at 16:20:39 UTC, ixid wrote:
> Doesn't binaryReverseArgs in std.functional already do this? 
> Flip is a much, much better name though.

Though I still think write functions passing on the data would be 
useful, letting you avoid needless temporaries just so you can 
write the output of a function. It's useful for normal code as 
well as UFCS.

string temp = myFun();
temp.writeln;
result ~= temp ~ "\n";


More information about the Digitalmars-d-learn mailing list