[go-nuts] Why is Errorf() in the fmt packages and not in the errors package?

2016-06-23 Thread Tamás Gulácsi
Formatting? Tuning the question around: fmt.Errorf = errors.New(fmt.Sprintf) - just a convenience function. GMT is quite heavy, errors is light. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] Why is Errorf() in the fmt packages and not in the errors package?

2016-06-23 Thread Rob Pike
To avoid a dependency cycle. fmt depends on errors, so errors can't call functions in fmt. -rob On Thu, Jun 23, 2016 at 1:15 PM, wrote: > The title. > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To

[go-nuts] Why is Errorf() in the fmt packages and not in the errors package?

2016-06-23 Thread jamalsmith95 . bc
The title. -- 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.