diff options
author | Robert Griesemer <gri@golang.org> | 2009-11-20 11:50:11 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-11-20 11:50:11 -0800 |
commit | e5b570dc8253c25071e3b91f7ea8b0fd8f258cfb (patch) | |
tree | 64ee9a08afbe0716417da12171dc4afb8e658821 /lib/codereview/codereview.py | |
parent | c861f30835090bbd6b9b35a80667f26952843767 (diff) | |
download | golang-e5b570dc8253c25071e3b91f7ea8b0fd8f258cfb.tar.gz |
Support for basic try-catch style exception handling.
Meant as illustration of the Go pattern that is using
goroutines and channels to handle exceptional situations.
Note: There is no need for "Finally" since the
"try block" (the function f supplied to Try)
cannot do a Smalltalk-style non-local return
and terminate the function surrounding Try.
Replaces CL 157083.
R=r, rsc
http://codereview.appspot.com/157087
Diffstat (limited to 'lib/codereview/codereview.py')
0 files changed, 0 insertions, 0 deletions