1
0
mirror of https://github.com/golang/go synced 2024-10-04 08:31:22 -06:00
go/src/pkg/exp
Robert Griesemer d08dd8bec1 go/scanner: clean up error interface
Issue 2856 asks for a rename of a few methods to a
more idiomatic Go style. This is a very early API
that evolved organically throughout the years.
Together with the fact that ErrorVectors were embedded
in other data structures (e.g. Parser), just renaming
methods (e.g. GetError -> Error) would lead to undesired
behavior (e.g., Parser would act like an Error). Instead,
cleaned up API a bit more:

- removed ErrorVector in favor of ErrorList (already
present)
- simplified Scanner.Init by making the error handler a
function instead of requiring an ErrorHandler implementation
- adjusted helper functions accordingly
- updated Go 1 doc

Fixes #2856.

R=rsc
CC=golang-dev
https://golang.org/cl/5624047
2012-02-08 11:41:32 -08:00
..
ebnf build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
ebnflint tools: update references to "x" to be "go tool x" 2012-02-04 07:03:20 +11:00
gotype build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
html all: avoid bytes.NewBuffer(nil) 2012-02-06 14:09:00 +11:00
inotify std: add struct field tags to untagged literals. 2012-02-03 10:12:25 +11:00
norm exp/norm: a few minor changes in prepration for a table format change: 2012-02-02 13:55:53 +01:00
proxy build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
signal os/signal: move to exp/signal. 2012-02-02 09:08:50 +11:00
terminal build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
types go/scanner: clean up error interface 2012-02-08 11:41:32 -08:00
utf8string build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
winfsnotify build: remove Make.pkg, Make.tool 2012-01-30 23:43:46 -05:00
wingui more tags for go/build 2011-12-15 13:35:59 -05:00
README explain exp 2009-10-15 11:02:18 -07:00

This directory tree contains experimental packages and
unfinished code that is subject to even more change than the
rest of the Go tree.