Skip to content

Instantly share code, notes, and snippets.

@ben-ng ben-ng/snipper.go
Created Mar 7, 2014

Embed
What would you like to do?
func main() {
runloop := func() {
// Recovers from panics
defer func() {
if r := recover(); r != nil {
runloop() // why doesn't this compile?? "undefined: runloop"
}
}()
panic()
}
runloop()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.