You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go ((func())(nil))()
Should it panic in the calling go routine, or at the start of the called goroutine?
defer ((func())(nil))()
Should it panic at the defer statement, or at the return point?
We've had some argument either way. Panicing in the calling goroutine / at defer
statement is failing early, might be useful for people. Panicing late might be
expected, as the go/deferred routine doesn't actually use the nil value until then.
Panicing late is what we do now.
The runtime meeting decided gri should figure this out, maybe update the spec.
Related to issues 8045 (go) and 8047 (defers).
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: