summaryrefslogtreecommitdiff
path: root/src/pkg/exp/exception/exception.go
AgeCommit message (Collapse)AuthorFilesLines
2010-04-13Remove exp/exception as it's no longer relevantChristopher Wedgwood1-83/+0
R=gri, adg CC=golang-dev, r, rsc http://codereview.appspot.com/857048 Committer: Andrew Gerrand <adg@golang.org>
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-11/+11
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 2nd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/179067
2009-11-20Support for basic try-catch style exception handling.Robert Griesemer1-0/+83
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