[go-nuts] A unofficial Go error handling proposal

2019-07-18 Thread 'Yongjian Xu' via golang-nuts
Inspired from reading https://github.com/golang/go/issues/32437#issuecomment-50187 After some careful thoughts on various different concerns and criticisms of the existing proposal, I'd want to give a try from a different approach. Using the famous example of CopyFile: func CopyFile(src

[go-nuts] panic propagation can be blocked by blocking defer function

2018-03-31 Thread 'Yongjian Xu' via golang-nuts
This program will make panic not panicking but silently blocking forever. func panicfunc() { panic("oops") } func run() { defer func() { select {} } panicfunc() } func main() { // not trigger runtime deadlock. go func() { ticker := time.NewTicker(1