summaryrefslogtreecommitdiff
path: root/doc/go_spec.html
AgeCommit message (Collapse)AuthorFilesLines
2010-01-27note that ...T is not yet implemented.Rob Pike1-0/+1
R=rsc CC=golang-dev http://codereview.appspot.com/194114
2010-01-27add definition of new parameter styleRob Pike1-17/+51
... T for trailing arguments of type T. R=rsc, gri, ken2, iant CC=golang-dev http://codereview.appspot.com/194100
2010-01-27Clarify parsing of channel types.Robert Griesemer1-1/+13
R=r, rsc CC=golang-dev http://codereview.appspot.com/194091
2010-01-26spec: allow func() func().Russ Cox1-18/+18
no longer ambiguous at top level, thanks to new semicolon rules. use gofmt layout for function types. Fixes issue 528. R=gri CC=golang-dev http://codereview.appspot.com/194077
2010-01-25log.Fatal does not exist. Use log.Crash.Rob Pike1-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/193075
2010-01-18spec: mention Inf and NaN are supported at run time.Russ Cox1-1/+11
add hyperlink at mention of package reflect. Fixes issue 438. R=r CC=golang-dev http://codereview.appspot.com/190042
2010-01-13Clarify when expressions are evaluated for a range clause.Ian Lance Taylor1-1/+6
R=gri, rsc CC=golang-dev http://codereview.appspot.com/189057
2010-01-13fix typo found by kevin ballardRob Pike1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/186113
2010-01-09fix typoRob Pike1-1/+1
R=gri, iant CC=golang-dev http://codereview.appspot.com/183160
2010-01-04remove reference to "basic literal" since it's never definedRobert Griesemer1-1/+2
R=rsc, r CC=golang-dev http://codereview.appspot.com/183113
2009-12-28Clarify section on tokens.Robert Griesemer1-3/+4
Fixes issue 457. R=r CC=golang-dev http://codereview.appspot.com/181083
2009-12-23go_spec: use PrimaryExpr as type switch expressionRuss Cox1-1/+1
Without this change, the spec parses <-c.(type) as (<-c).(type) but parses <-c.(int) as <-(c.(int)). With this change, the former parses as <-(c.(type)). All three parsers already implement this rule, because they look for the "type" word during parsing of a standard type assertion. This change merely brings the spec in line with the implementations. http://code.google.com/p/go/source/browse/src/cmd/gc/go.y#801 http://code.google.com/p/go/source/browse/src/pkg/go/parser/parser.go#900 http://gcc.gnu.org/viewcvs/branches/gccgo/gcc/go/parse.cc?revision=155389&view=markup#l2469 Pointed out by Brett Kail on golang-nuts. R=gri CC=golang-dev http://codereview.appspot.com/182044
2009-12-10Spec modified to reflect new semicolon rules.Robert Griesemer1-242/+273
R=rsc, r, iant, ken2 CC=golang-dev http://codereview.appspot.com/166066 Committer: Robert Griesemer <gri@golang.org>
2009-12-04spec: document that built-ins cannot be used as func valuesRuss Cox1-0/+6
R=gri CC=golang-dev http://codereview.appspot.com/164088
2009-12-02Add copy to the list of predeclared functions.Ian Lance Taylor1-1/+1
R=gri http://codereview.appspot.com/164081
2009-12-01Integrated feedback by Ken.Robert Griesemer1-39/+37
Easy stuff in this round, more to come. R=iant, rsc, r, ken2 http://codereview.appspot.com/163058
2009-11-30Fix typo in specFazlul Shahriar1-1/+1
R=golang-dev, rsc http://codereview.appspot.com/164052 Committer: Russ Cox <rsc@golang.org>
2009-11-20mention arrays of arrays and slices of slicesRob Pike1-0/+11
Fixes issue 113. R=gri, rsc CC=golang-dev http://codereview.appspot.com/159049
2009-11-18Allow optional second expression in slice expressions.Robert Griesemer1-12/+51
Built-in function copy. Addresses issue 203. R=rsc, r, iant http://codereview.appspot.com/156089
2009-11-16- Clarify that struct composite literal keys are field names not selectors.Robert Griesemer1-19/+22
- Slight re-phrasing of struct type section since "field name" was not properly introduced. Fixes issue 164. R=r, rsc, iant http://codereview.appspot.com/155061
2009-11-15Use ElementType consistently.Robert Griesemer1-5/+4
Fixes issue 173. R=r, rsc, r1 http://codereview.appspot.com/154156
2009-11-15Use // to start comment instead of #.Robert Griesemer1-4/+4
Fixes issue 189. R=r CC=rsc http://codereview.appspot.com/155055
2009-11-12add a paragraph about semicolons to the tutorial.Rob Pike1-1/+1
fix a typo caught by kakugawa@gmail.com Fixes issue 92. R=rsc CC=golang-dev http://codereview.appspot.com/152105
2009-11-12fix a couple of typos.Rob Pike1-1/+1
add a mention of range to the tutorial. change tutorial's title. R=rsc CC=golang-dev http://codereview.appspot.com/152098
2009-11-09comment out red TODO clauses except for the last oneRob Pike1-2/+13
R=rsc CC=go-dev http://go/go-review/1024037
2009-11-09fix for incorrect composite literal grammarRobert Griesemer1-1/+2
(issue found by ken) R=go-dev, rsc http://go/go-review/1025030
2009-11-07fixes to spec. mostly minor but several of significance.Rob Pike1-31/+64
- carriage return is white space - "" strings cannot span newlines - f(g()) is ok if g is multivalue and matches f's args R=rsc, gri CC=go-dev http://go/go-review/1024017
2009-11-03remove gccgo restriction with respect to blank identifiersRobert Griesemer1-1/+0
R=iant CC=go-dev http://go/go-review/1016032
2009-11-02pdf cleanup: fix links, remove internal references.Rob Pike1-1/+1
fix link in spec. R=rsc CC=go-dev http://go/go-review/1017013
2009-10-28clarify rule for channel sendRobert Griesemer1-2/+3
R=rsc CC=go-dev http://go/go-review/1018002
2009-10-22go/printer:Robert Griesemer1-15/+15
- handle HTML tagging via (client-installable) Stylers go/doc: - basic styler support - some factoring - ready to contain the search code (but for now excluded) doc/style.css: - updated doc/go_spec.css: - cleanup: replace deprecated uses of <font> tag with <span> tag R=rsc DELTA=302 (160 added, 62 deleted, 80 changed) OCL=35973 CL=35996
2009-10-20address bug193 and add note to spec about it.Russ Cox1-0/+1
R=ken OCL=35920 CL=35920
2009-10-19- method names in method sets/interfaces must be all differentRobert Griesemer1-33/+63
- specify evaluation order of floating-point expressions as discussed - specify floating point conversion rounding as discussed - slightly reformatted section on conversions to make it more readable (hopefully) - fixed production for interpreted_string_lit - components were not properly tagged before because of """ instead of `"` R=go-dev DELTA=83 (41 added, 11 deleted, 31 changed) OCL=35864 CL=35885
2009-10-01Factored out boilerplate from all html docs in doc directory:Robert Griesemer1-72/+1
- the first HTML comment in those files is extracted as page title when serving them - lib/godoc.html is top-level template for all pages served - experimented a bit with package documentation layout (feedback welcome) - various related cleanups TODO: - The / page (doc/root.html) content repeats links that are in the navigation bar. It needs to be cleaned up. R=rsc DELTA=826 (86 added, 692 deleted, 48 changed) OCL=35230 CL=35245
2009-09-30- completed section on built-in functionsRobert Griesemer1-122/+139
- moved Conversions section out of built-in functions and into expressions - fixed syntax of conversions (parens are not mandatory if the type is not a TypeName) (this is the only change to the Conversions section; the rest of the text is just moved; old line: 4043, new line: 3078) - fixed syntax of composite literals (parens are allowed around LiteralType) DELTA=239 (115 added, 98 deleted, 26 changed) OCL=35118 CL=35159
2009-09-29make the sidebars consistentRob Pike1-5/+9
add Effective Go to the set of links DELTA=166 (62 added, 57 deleted, 47 changed) OCL=35085 CL=35089
2009-09-28- assignments to structs are only legal if all struct fields are visibleRobert Griesemer1-34/+20
- removed section on Multiple-file packages as this seems now now covered sufficiently elsewhere DELTA=45 (11 added, 25 deleted, 9 changed) OCL=35065 CL=35071
2009-09-28disallow interface {x, y()}Russ Cox1-7/+10
R=gri DELTA=8 (3 added, 0 deleted, 5 changed) OCL=35045 CL=35047
2009-09-28- clarify type declaration (specifying status quo)Robert Griesemer1-17/+60
DELTA=68 (51 added, 8 deleted, 9 changed) OCL=35038 CL=35046
2009-09-25rewrite the section about importsRob Pike1-29/+28
DELTA=42 (10 added, 11 deleted, 21 changed) OCL=35017 CL=35020
2009-09-25- reworked section on import declarationsRobert Griesemer1-25/+53
- added missing <p> tags in various places DELTA=62 (32 added, 4 deleted, 26 changed) OCL=35014 CL=35014
2009-09-25- fixed sieve.go example (channel directions were wrong)Robert Griesemer1-30/+30
- cosmetic adjustments R=r DELTA=30 (0 added, 0 deleted, 30 changed) OCL=35010 CL=35012
2009-09-24rewording around ideal and basic typesRobert Griesemer1-228/+237
DELTA=355 (93 added, 85 deleted, 177 changed) OCL=34904 CL=34998
2009-09-19hakuhoRob Pike1-1/+1
R=ken DELTA=1 (0 added, 0 deleted, 1 changed) OCL=34828 CL=34828
2009-09-18- added heading to operator precedence section so it's easy to findRobert Griesemer1-19/+17
- fixed broken link to function literals section - minor adjustments R=r DELTA=20 (1 added, 3 deleted, 16 changed) OCL=34792 CL=34794
2009-09-17- silence ebnflint: mark syntax section as "ebnf" instead of "grammar"Robert Griesemer1-3/+3
- re-use MethodName production R=r DELTA=4 (1 added, 1 deleted, 2 changed) OCL=34734 CL=34734
2009-09-17A step towards "externalizing" some Go docs.Larry Hosken1-19/+64
+ style sheet: like code.google.com but less feature-ful + JS with table-of-contents generation + tweaked go_spec.html and go_mem.html to use new style+JS + static-HTML-ified a few other Go docs: + static HTML versions of some wiki pages (which I'll turn into links to these pages). A notable thing that is _not_ in this changelist: any change to the godoc tool or whatever thing generates http://go/godoc R=r APPROVED=r DELTA=2472 (2307 added, 113 deleted, 52 changed) OCL=34644 CL=34728
2009-09-16slight refinement of select: evaluation is top to bottom, as in switches.Rob Pike1-7/+5
DELTA=9 (2 added, 4 deleted, 3 changed) OCL=34690 CL=34692
2009-09-16- added syntax for conversions (was missing)Robert Griesemer1-2/+12
- added TODO for syntax for built-ins (require type as first argument) - removed duplicate definition of Index DELTA=13 (11 added, 1 deleted, 1 changed) OCL=34668 CL=34688
2009-09-15Deriving functions from methodsRob Pike1-119/+121
DELTA=238 (118 added, 116 deleted, 4 changed) OCL=34653 CL=34660