fmt.Sprint(sl) is not the same as fmt.Sprint(*sl). That makes the String methods in both examples different.
On Thursday, September 1, 2016 at 12:02:04 PM UTC+2, Shulhan wrote: > > On Thursday, 1 September 2016 16:25:24 UTC+7, dja...@gmail.com wrote: >> >> Hi, >> Do you know what infinite recursion is ? >> > > Yes, I know. > > >> fmt.String use your String method >> >> see https://play.golang.org/p/jeOilZW7JU >> >> > By that logic, the first example should be stack overflow too, but it's > not. > -- 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.