@Pietro Gagliardi (andlabs) Oh, thank you, I fixed it. @Michael Jones I think nothing will changed in case of fmt.Println(math.Inf(0)) or defer, because it never triggered.
@kortschak I'll think about it :) Any ideas how to improve "infinity depth"? четверг, 17 ноября 2016 г., 2:22:02 UTC+4 пользователь Pietro Gagliardi (andlabs) написал: > > Run() waits for the process to exit, so in reality only the third thing > there is ever run. Use Start() instead. > > select{} blocks forever. > > On Nov 16, 2016, at 5:15 PM, Michael Jones <michae...@gmail.com > <javascript:>> wrote: > > After your for loop, you could add: > > fmt.Println(math.Inf(0)) > > > *From: *<golan...@googlegroups.com <javascript:>> on behalf of Nikita > Loskutov <cna...@gmail.com <javascript:>> > *Date: *Wednesday, November 16, 2016 at 1:58 PM > *To: *golang-nuts <golan...@googlegroups.com <javascript:>> > *Subject: *[go-nuts] Reaching infinity > > Hello! > > I've wrote this small code snippet in *STRICTLY ACADEMIC PURPOSE*, see > comments. > https://gist.github.com/cnaize/c106969508bdd898cc3b5026c110ed65 > > As I think in this 2 lines of the code where are "3 infinities": > 1 - infinity for loop > 2 - goroutines infinity > 3 - program itself infinity > > Is anybody know how to increase "infinities count"? > -- > 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...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > > -- > 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...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > > -- 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.