Call-cc in Go?

281 visualizações
Pular para a primeira mensagem não lida

Julian

não lida,
11 de nov. de 2009, 05:13:3911/11/2009
para golang-nuts

Adam Langley

não lida,
11 de nov. de 2009, 10:43:2311/11/2009
para Julian, golang-nuts
On Wed, Nov 11, 2009 at 2:13 AM, Julian <julian...@gmail.com> wrote:
> Is it possible to use a call-cc in Go?
>
> http://en.wikipedia.org/wiki/Call-with-current-continuation

No. It's not completely possible to imagine since the stacks are heap
allocated, but I don't believe that we have plans for continuations at
the moment.


AGL

John Cowan

não lida,
11 de nov. de 2009, 16:32:1711/11/2009
para Adam Langley, Julian, golang-nuts

Goroutines are equivalent to one-shot (use and forget) continuations anyhow.

>
>
> AGL
>

--
GMail doesn't have rotating .sigs, but you can see mine at
http://www.ccil.org/~cowan/signatures

roger peppe

não lida,
12 de nov. de 2009, 11:09:0612/11/2009
para John Cowan, Adam Langley, Julian, golang-nuts
2009/11/11 John Cowan <johnw...@gmail.com>:
> Goroutines are equivalent to one-shot (use and forget) continuations anyhow.

but they're not garbage collected in the same way, right?

Ian Lance Taylor

não lida,
12 de nov. de 2009, 18:22:5412/11/2009
para roger peppe, John Cowan, Adam Langley, Julian, golang-nuts
Currently they are not, correct. The plan is that eventually they
will be.

Ian
Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem