[Issue 9882] Add UFCS-friendly printing functions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Apr  5 11:46:04 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=9882
--- Comment #3 from Jacob Carlborg <doob at me.com> 2013-04-05 11:46:00 PDT ---
> To use tap I have used a syntax like:
> 
>     .tap!q{ writeln(s) }
>     .tap!q{ writefln("%(%s\n%)", s) };
> 
> But I don't know if such syntax is good and possible in D.
Sure, but I prefer the lambda syntax:
.tap!(s => writeln(s))
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list