Konstantin Khomoutov
unread,Feb 8, 2017, 5:24:33 AM2/8/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Justin Israel, 高橋誠二, golang-nuts, dja...@gmail.com
On Wed, 08 Feb 2017 09:52:49 +0000
Justin Israel <
justin...@gmail.com> wrote:
> > fmt package have no *lnf method, but in other langs,
> > sometimes it implements Printlnf.
> > Is there any reason?
> > yes, I know but other languages support it as default, isn't it?
> *some* languages apparently do. But then again maybe you could ask the
> opposite question to those languages. Why did these languages you
> refer to choose to implement a Printlnf? In said language, is it not
> trivial to simply add the newline character to your format string?
> Did it warrant it's own builtin function?
Another question to ask is whether that imaginary fmt.Printlnf()
should output a platform-default EOL sequence or plain LF in all cases.
An interesting point is that implementing it either way is wrong ;-)