Hi Anirudh, On Tuesday, May 22, 2018 at 4:29:59 PM UTC-7, Anirudh Vyas wrote: > > Hi - > > I want to have a Printfln on log and fmt - Currently I use fmt.Printf( " > yada yada \n", some_yada_yada) to achieve same effect. Is there a plan to > add this simple yet extremely useful function? >
I doubt it, because: - the substitution of "Printfln" vs. adding "\n" saves *no* typing - moving the "ln" to the beginning of the line moves the meaning ("new line") away from the location where its meaning is intended. Go is all about being explicit to avoid confusion. - Printf - with fair regularity - gets used with "\n" sprinkled throughout the format string, rather than just at the end (an unusual use for Println), so that invites the question - why is the "\n" at the end of the string special? - The provided functions have a long history behind them. Eric. > > > Thanks > Anirudh > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.