[go-nuts] Reaching infinity

2016-11-16 Thread Nikita Loskutov
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 a

Re: [go-nuts] Reaching infinity

2016-11-16 Thread Michael Jones
After your for loop, you could add: fmt.Println(math.Inf(0)) From: on behalf of Nikita Loskutov Date: Wednesday, November 16, 2016 at 1:58 PM To: golang-nuts Subject: [go-nuts] Reaching infinity Hello! I've wrote this small code snippet in STRICTLY ACADEMIC PURPOSE

Re: [go-nuts] Reaching infinity

2016-11-16 Thread Pietro Gagliardi
> From: on behalf of Nikita Loskutov > > Date: Wednesday, November 16, 2016 at 1:58 PM > To: golang-nuts > Subject: [go-nuts] Reaching infinity > > Hello! > > I've wrote this small code snippet in STRICTLY ACADEMIC PURPOSE, see comments. > https://gist.githu

Re: [go-nuts] Reaching infinity

2016-11-16 Thread Michael Jones
Oh, and you could defer something at the start of main…that will wait forever to execute since the for loop never returns. From: Pietro Gagliardi Date: Wednesday, November 16, 2016 at 2:21 PM To: Michael Jones Cc: Nikita Loskutov , golang-nuts Subject: Re: [go-nuts] Reaching infinity

Re: [go-nuts] Reaching infinity

2016-11-16 Thread Dan Kortschak
Rename it buzz_lightyear.go On Wed, 2016-11-16 at 13:58 -0800, Nikita Loskutov wrote: > 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

Re: [go-nuts] Reaching infinity

2016-11-16 Thread Nikita Loskutov
> > After your for loop, you could add: > > fmt.Println(math.Inf(0)) > > > *From: *> on behalf of Nikita > Loskutov > > *Date: *Wednesday, November 16, 2016 at 1:58 PM > *To: *golang-nuts > > *Subject: *[go-nuts] Reaching infinity > > Hello!

Re: [go-nuts] Reaching infinity

2016-11-17 Thread Val
os.Args[1:]... looks unused, I would remove it for sake of conciseness. -- 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.

Re: [go-nuts] Reaching infinity

2016-11-17 Thread Nikita Loskutov
Yes, it unused now, i removed it, thank you. четверг, 17 ноября 2016 г., 13:46:46 UTC+4 пользователь Val написал: > > os.Args[1:]... looks unused, I would remove it for sake of conciseness. > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To

Re: [go-nuts] Reaching infinity

2016-11-17 Thread Michael Jones
Yes…that’s the point….an infinite defer that would have printed infinity From: Nikita Loskutov Date: Wednesday, November 16, 2016 at 11:24 PM To: golang-nuts Cc: , Subject: Re: [go-nuts] Reaching infinity @Michael Jones I think nothing will changed in case of fmt.Println(math.Inf(0

Re: [go-nuts] Reaching infinity

2016-11-17 Thread Nikita Loskutov
> > > > *From: *Nikita Loskutov > > *Date: *Wednesday, November 16, 2016 at 11:24 PM > *To: *golang-nuts > > *Cc: *>, > > > *Subject: *Re: [go-nuts] Reaching infinity > > > > @*Michael Jones *I think nothing will changed in case of > fmt.Pri

Re: [go-nuts] Reaching infinity

2016-11-17 Thread Nikita Loskutov
6, 2016 at 11:24 PM >> *To: *golang-nuts >> *Cc: *, >> *Subject: *Re: [go-nuts] Reaching infinity >> >> >> >> @*Michael Jones *I think nothing will changed in case of >> fmt.Println(math.Inf(0)) >> or defer, because it never triggered. >&g