On Sunday, September 11, 2016, Zoffix Znet via RT <
perl6-bugs-follo...@perl.org> wrote:

> On Sun Sep 11 15:29:45 2016, tbrowder wrote:
> > Uh, say "what?" :)


Just a little humour.  Someone thought thought it was worth it to not have
to explicitly add the newline on print, and I feel the same way about
printf.

...

I don't think that works as a justification. The put() is used much more
> frequently than printf(), so it makes sense to have it as a "\n"-adding
> alternative to print().
> But my main point was that with printf() you're writing the format string
> anyway, so adding a \n into it is easy, as compared to adding one to
> print():

...

> You literally save 1 character of typing in a not the most used
> subroutine,


I respectfully disagree, Zoffix.  I used printf in Perl 5, to a file, for
many years writing auto-generated documents, and I would have loved to have
the equivalent of println (is that Java?).

In addition, such a function would reduce code line noise quite a bit IMHO.

Anyway, if we ever get printf for an IO::Handle, I would like to see
something like I suggested.

Reply via email to