[Issue 9882] Add UFCS-friendly printing functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 5 11:02:49 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9882



--- Comment #2 from bearophile_hugs at eml.cc 2013-04-05 11:02:48 PDT ---
(In reply to comment #1)
> I like that "tap" function in Ruby and use it for non-range code as well.

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.

-- 
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