[Issue 9882] Add UFCS-friendly printing functions

2017-08-26 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9882 b2.t...@gmx.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 9882] Add UFCS-friendly printing functions

2014-07-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9882 --- Comment #7 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/45c4e51982c47e0f76583459eeb47a830c0277a1 Revive #1348: Issue

[Issue 9882] Add UFCS-friendly printing functions

2014-07-16 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9882 --- Comment #8 from bearophile_h...@eml.cc --- (In reply to github-bugzilla from comment #7) Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/

[Issue 9882] Add UFCS-friendly printing functions

2013-04-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9882 --- Comment #6 from bearophile_h...@eml.cc 2013-04-26 15:28:37 PDT --- A suggestion in D.learn shows me that sometimes std.functional.binaryReverseArgs is an acceptable solution for the terminal writefln (but it can't be used for intermediate

[Issue 9882] Add UFCS-friendly printing functions

2013-04-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9882 Jacob Carlborg d...@me.com changed: What|Removed |Added CC||d...@me.com --- Comment

[Issue 9882] Add UFCS-friendly printing functions

2013-04-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9882 --- Comment #2 from bearophile_h...@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) }

[Issue 9882] Add UFCS-friendly printing functions

2013-04-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9882 --- Comment #3 from Jacob Carlborg d...@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.

[Issue 9882] Add UFCS-friendly printing functions

2013-04-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9882 --- Comment #4 from bearophile_h...@eml.cc 2013-04-05 11:52:25 PDT --- (In reply to comment #3) Sure, but I prefer the lambda syntax: .tap!(s = writeln(s)) A lambda like s = writeln(s) returns void, it's kind of the opposite of the lambda

[Issue 9882] Add UFCS-friendly printing functions

2013-04-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=9882 --- Comment #5 from Jacob Carlborg d...@me.com 2013-04-05 12:00:05 PDT --- (In reply to comment #4) A lambda like s = writeln(s) returns void, it's kind of the opposite of the lambda calculus :-) Right, forgot that. -- Configure issuemail: