tags:

views:

151

answers:

1

Is it possible to do a call-cc (http://en.wikipedia.org/wiki/Call-with-current-continuation) in Google's new Language Go? (http://golang.org/)

+1  A: 

According to one of the go contributors, no it's not possible.

wulong
Good call. Two points from that thread: (i) go closures are heap allocated (not trampolined or anything), and (ii) "Goroutines are equivalent to one-shot (use and forget) continuations".
Charles Stewart