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
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
> 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
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
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
>
> 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!
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.
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
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
>
>
>
> *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
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
11 matches
Mail list logo