Rob Pike
c6e904d580
have http server in-line PDF files.
...
add go course pdf files to doc/ for godoc to serve.
fix links to point to those files.
R=rsc
DELTA=7 (4 added, 0 deleted, 3 changed)
OCL=35972
CL=35981
2009-10-21 19:52:11 -07:00
Rob Pike
6f89f3f08d
initialization
...
R=rsc
DELTA=292 (124 added, 165 deleted, 3 changed)
OCL=35936
CL=35939
2009-10-20 17:32:16 -07:00
Rob Pike
430d462391
start the concurrency discussion. work from the outside in because this is a toughie.
...
also fix a pedantry in the language design faq.
R=rsc
DELTA=113 (94 added, 16 deleted, 3 changed)
OCL=35922
CL=35928
2009-10-20 12:30:39 -07:00
Russ Cox
60ff8cc86f
address bug193 and add note to spec about it.
...
R=ken
OCL=35920
CL=35920
2009-10-20 08:27:14 -07:00
Robert Griesemer
d4d4ff0d83
- method names in method sets/interfaces must be all different
...
- 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-19 13:13:59 -07:00
Rob Pike
9f60b03610
address leftover post-submit comments about embedding
...
R=rsc
DELTA=11 (9 added, 0 deleted, 2 changed)
OCL=35872
CL=35872
2009-10-19 10:34:00 -07:00
Rob Pike
f00be0caee
more embedding. enough for now?
...
R=rsc
DELTA=51 (48 added, 0 deleted, 3 changed)
OCL=35846
CL=35853
2009-10-16 16:16:02 -07:00
Rob Pike
c58d9efc63
fix pre-submit editing typo; text is garbled.
...
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=35841
CL=35841
2009-10-16 11:23:45 -07:00
Rob Pike
8840726edc
embedding part 1.
...
R=rsc
DELTA=128 (104 added, 0 deleted, 24 changed)
OCL=35835
CL=35839
2009-10-16 11:13:40 -07:00
Rob Pike
ee3e97c778
forgot to update the body when i changed the receiver type.
...
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=35759
CL=35761
2009-10-15 00:27:26 -07:00
Rob Pike
2119b3672d
interfaces and methods.
...
R=rsc
DELTA=160 (143 added, 5 deleted, 12 changed)
OCL=35748
CL=35758
2009-10-14 23:03:08 -07:00
Ian Lance Taylor
4262ff0553
Adjust for open source release.
...
R=go-dev
DELTA=111 (19 added, 38 deleted, 54 changed)
OCL=35722
CL=35728
2009-10-14 15:49:20 -07:00
Russ Cox
a68592a4dd
excise some internal references.
...
R=r
DELTA=209 (65 added, 114 deleted, 30 changed)
OCL=35718
CL=35721
2009-10-14 13:02:05 -07:00
Rob Pike
68c921e25c
add an entry in the lang faq about reference types.
...
remove a mention of sawzall in the tutorial.
R=rsc
DELTA=36 (14 added, 4 deleted, 18 changed)
OCL=35717
CL=35719
2009-10-14 11:53:55 -07:00
Rob Pike
bf983a0df2
bye-bye to old makehtml.
...
go can do the job just fine.
R=rsc
DELTA=290 (209 added, 13 deleted, 68 changed)
OCL=35699
CL=35699
2009-10-13 22:10:16 -07:00
Rob Pike
327b6c637e
fix links in tutorial
...
R=rsc
DELTA=30 (0 added, 22 deleted, 8 changed)
OCL=35694
CL=35697
2009-10-13 18:01:24 -07:00
Rob Pike
cd7062ef6f
clean up the mess that copyright notices make
...
R=rsc
DELTA=555 (92 added, 38 deleted, 425 changed)
OCL=35691
CL=35693
2009-10-13 17:17:30 -07:00
Rob Pike
b95048f38d
some stuff about interfaces. not enough yet.
...
R=rsc
DELTA=209 (129 added, 24 deleted, 56 changed)
OCL=35675
CL=35680
2009-10-13 14:32:21 -07:00
Rob Pike
400fa1c893
align the tutorial with the renaming of SortInterface.
...
fix a bug in makehtml - was deleting the output!
R=rsc
DELTA=11 (2 added, 0 deleted, 9 changed)
OCL=35672
CL=35674
2009-10-13 13:05:42 -07:00
Rob Pike
7839521335
Automated g4 rollback of changelist 35383.
...
*** Reason for rollback ***
roll back the changes to the tutorial programs (only) since they
break the automated processing used to create the tutorial.
*** Original change description ***
apply gofmt to the LGTM-marked files from 34501
that have not changed since I applied gofmt.
R=rsc
DELTA=139 (0 added, 44 deleted, 95 changed)
OCL=35670
CL=35670
2009-10-13 12:37:04 -07:00
Rob Pike
3139b2031c
new logo
...
R=rsc
DELTA=3 (1 added, 1 deleted, 1 changed)
OCL=35652
CL=35652
2009-10-12 22:58:32 -07:00
Rob Pike
d2228692b2
type switches
...
errors
R=rsc
DELTA=150 (74 added, 34 deleted, 42 changed)
OCL=35647
CL=35650
2009-10-12 21:18:23 -07:00
Ian Lance Taylor
e2854875c5
Review and update. No major changes, lots of minor tweaks.
...
R=go-dev
DELTA=176 (39 added, 9 deleted, 128 changed)
OCL=35612
CL=35623
2009-10-12 15:43:13 -07:00
Rob Pike
9dfe40441e
printing and maps
...
R=rsc,gri
DELTA=228 (223 added, 1 deleted, 4 changed)
OCL=35617
CL=35619
2009-10-12 14:51:12 -07:00
Russ Cox
650bff6aa9
another round of gofmt applications
...
R=gri
DELTA=900 (106 added, 31 deleted, 763 changed)
OCL=35384
CL=35396
2009-10-06 14:55:39 -07:00
Russ Cox
c62b3265a7
apply gofmt to the LGTM-marked files from 34501
...
that have not changed since I applied gofmt.
R=gri
DELTA=456 (77 added, 3 deleted, 376 changed)
OCL=35378
CL=35383
2009-10-06 11:42:55 -07:00
Rob Pike
38dae338f6
add a little more saturation to the background of <pre> so it doesn't disappear on bright monitors.
...
verified as acceptable on my calibrated home monitor.
R=gri
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=35340
CL=35342
2009-10-05 15:17:30 -07:00
Rob Pike
2b1dbe8a4f
addressing gri's comments.
...
R=gri
DELTA=31 (7 added, 17 deleted, 7 changed)
OCL=35336
CL=35338
2009-10-05 14:49:51 -07:00
Rob Pike
3e74079151
slices
...
methods on slices, pointers and values.
R=iant,rsc,gri
DELTA=173 (150 added, 1 deleted, 22 changed)
OCL=35333
CL=35337
2009-10-05 14:48:57 -07:00
Rob Pike
ff97fde26b
a few fixups. delete the TODO block.
...
R=rsc
DELTA=23 (0 added, 20 deleted, 3 changed)
OCL=35330
CL=35330
2009-10-05 11:13:56 -07:00
Rob Pike
d4a4468204
garbage collections, conversions, concurrency
...
R=iant,rsc,gri
DELTA=106 (87 added, 8 deleted, 11 changed)
OCL=35298
CL=35302
2009-10-03 09:38:47 -07:00
Robert Griesemer
840333009c
replace "ideal" with "untyped"
...
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=35242
CL=35258
2009-10-01 16:58:17 -07:00
Robert Griesemer
a27f1f7475
use the notion of "untyped constant" instead of "ideal constant"
...
R=iant
DELTA=13 (1 added, 0 deleted, 12 changed)
OCL=35241
CL=35246
2009-10-01 14:12:18 -07:00
Robert Griesemer
53440da835
Factored out boilerplate from all html docs in doc directory:
...
- 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-10-01 14:08:00 -07:00
Robert Griesemer
164a7bceeb
- completed section on built-in functions
...
- 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-30 12:00:25 -07:00
Rob Pike
5b79202ca2
another brace of questions: types, maps, bookkeeping
...
DELTA=136 (120 added, 13 deleted, 3 changed)
OCL=35133
CL=35147
2009-09-30 09:58:19 -07:00
Rob Pike
69d13b2332
make the sidebars consistent
...
add Effective Go to the set of links
DELTA=166 (62 added, 57 deleted, 47 changed)
OCL=35085
CL=35089
2009-09-29 11:57:28 -07:00
Rob Pike
8796e8ce1e
more language FAQ
...
DELTA=79 (61 added, 3 deleted, 15 changed)
OCL=35083
CL=35088
2009-09-29 11:56:57 -07:00
Robert Griesemer
326ef13976
- assignments to structs are only legal if all struct fields are visible
...
- 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-28 19:21:15 -07:00
Rob Pike
dd64f86e08
another bite-sized checkpoint on the language design FAQ
...
R=rsc,iant
DELTA=87 (54 added, 2 deleted, 31 changed)
OCL=35058
CL=35061
2009-09-28 16:40:34 -07:00
Rob Pike
320406d155
start of a language design FAQ.
...
R=rsc
DELTA=224 (214 added, 10 deleted, 0 changed)
OCL=35041
CL=35050
2009-09-28 14:37:14 -07:00
Russ Cox
13dac655cb
disallow interface {x, y()}
...
R=gri
DELTA=8 (3 added, 0 deleted, 5 changed)
OCL=35045
CL=35047
2009-09-28 14:16:33 -07:00
Robert Griesemer
fc61b77754
- clarify type declaration (specifying status quo)
...
DELTA=68 (51 added, 8 deleted, 9 changed)
OCL=35038
CL=35046
2009-09-28 14:10:20 -07:00
Rob Pike
2e5a136e45
add a data section and start populating it with info about allocation, arrays
...
R=rsc
DELTA=331 (266 added, 61 deleted, 4 changed)
OCL=35024
CL=35030
2009-09-27 17:59:36 -07:00
Rob Pike
3aec2e46de
rewrite the section about imports
...
DELTA=42 (10 added, 11 deleted, 21 changed)
OCL=35017
CL=35020
2009-09-25 17:00:22 -07:00
Robert Griesemer
997851e681
- reworked section on import declarations
...
- added missing <p> tags in various places
DELTA=62 (32 added, 4 deleted, 26 changed)
OCL=35014
CL=35014
2009-09-25 15:36:25 -07:00
Robert Griesemer
e1e7619f01
- fixed sieve.go example (channel directions were wrong)
...
- cosmetic adjustments
R=r
DELTA=30 (0 added, 0 deleted, 30 changed)
OCL=35010
CL=35012
2009-09-25 14:11:03 -07:00
Robert Griesemer
19b1d35d4c
rewording around ideal and basic types
...
DELTA=355 (93 added, 85 deleted, 177 changed)
OCL=34904
CL=34998
2009-09-24 19:36:48 -07:00
Russ Cox
b817e97961
change code font to "monospace", which will
...
let the browser use the font the user has set up
as the default fixed-width font, instead of forcing Courier.
also set the size to 100%, which means 100% of the
font size in the surrounding text. this looks a little
better in the main body but much better when the
code is in a heading (like Package unsafe).
R=r
DELTA=4 (1 added, 0 deleted, 3 changed)
OCL=34947
CL=34947
2009-09-23 21:38:52 -07:00
Rob Pike
ea4ada89e1
process tutorial into new format
...
R=rsc
DELTA=161 (57 added, 56 deleted, 48 changed)
OCL=34926
CL=34929
2009-09-23 12:31:57 -07:00
Rob Pike
084577b81a
hakuho
...
R=ken
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=34828
CL=34828
2009-09-19 11:41:26 -07:00
Robert Griesemer
d36d191e25
- added heading to operator precedence section so it's easy to find
...
- 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-18 11:58:35 -07:00
Rob Pike
44b0f591e7
check in the generated html for the tutorial so godoc can serve it
...
DELTA=1444 (1444 added, 0 deleted, 0 changed)
OCL=34760
CL=34762
2009-09-17 17:05:45 -07:00
Robert Griesemer
da961881b4
- silence ebnflint: mark syntax section as "ebnf" instead of "grammar"
...
- re-use MethodName production
R=r
DELTA=4 (1 added, 1 deleted, 2 changed)
OCL=34734
CL=34734
2009-09-17 11:01:50 -07:00
Larry Hosken
698c6c00a0
A step towards "externalizing" some Go docs.
...
+ 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-17 08:05:12 -07:00
Rob Pike
9d7538b42b
slight refinement of select: evaluation is top to bottom, as in switches.
...
DELTA=9 (2 added, 4 deleted, 3 changed)
OCL=34690
CL=34692
2009-09-16 11:49:35 -07:00
Robert Griesemer
5eb36240b7
- added syntax for conversions (was missing)
...
- 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-16 11:05:14 -07:00
Rob Pike
01cadde597
Deriving functions from methods
...
DELTA=238 (118 added, 116 deleted, 4 changed)
OCL=34653
CL=34660
2009-09-15 15:56:44 -07:00
Russ Cox
ae54cf73ca
last round: non-package code
...
R=r
DELTA=127 (38 added, 3 deleted, 86 changed)
OCL=34640
CL=34650
2009-09-15 12:42:24 -07:00
Rob Pike
8cb9184d7f
an attempt to define initialization order within a package.
...
DELTA=23 (19 added, 1 deleted, 3 changed)
OCL=34646
CL=34649
2009-09-15 11:56:39 -07:00
Rob Pike
678625d8df
minutiae: pass 1
...
DELTA=174 (65 added, 10 deleted, 99 changed)
OCL=34625
CL=34639
2009-09-15 09:54:22 -07:00
Rob Pike
f3a33bca40
make SimpleStmt include EmptyStmt and the grammar simplifies a bit.
...
SimpleStmt was always used as an option.
fix bug: divide is a right shift
DELTA=8 (0 added, 0 deleted, 8 changed)
OCL=34612
CL=34614
2009-09-14 17:39:17 -07:00
Russ Cox
28eba4877b
fix "declared and not used" errors in non-test code.
...
R=r
DELTA=112 (6 added, 57 deleted, 49 changed)
OCL=34610
CL=34610
2009-09-14 17:20:29 -07:00
Rob Pike
a5d6f8342c
functions
...
R=rsc
DELTA=125 (103 added, 22 deleted, 0 changed)
OCL=34586
CL=34598
2009-09-14 10:40:44 -07:00
Rob Pike
61dd8363ba
correct and clarify the rules about integer conversions.
...
DELTA=15 (6 added, 1 deleted, 8 changed)
OCL=34549
CL=34564
2009-09-11 11:51:00 -07:00
Rob Pike
c1342802dd
gccgo does not yet implement _
...
OCL=34517
CL=34517
2009-09-10 10:47:11 -07:00
Robert Griesemer
4e56b33b42
- blank identifier
...
- fixed some links
DELTA=51 (32 added, 1 deleted, 18 changed)
OCL=34497
CL=34515
2009-09-10 10:14:00 -07:00
Russ Cox
5d16d23362
update type switch to match spec.
...
R=ken
OCL=34471
CL=34471
2009-09-09 00:18:16 -07:00
Rob Pike
c77c3b0196
string range
...
R=rsc
DELTA=22 (19 added, 0 deleted, 3 changed)
OCL=34463
CL=34463
2009-09-08 17:11:57 -07:00
Robert Griesemer
506c008092
cosmetic changes:
...
- fixed a couple of broken links
- changed some explicit section references into implicit ones
R=r
DELTA=27 (0 added, 2 deleted, 25 changed)
OCL=34461
CL=34461
2009-09-08 15:41:14 -07:00
Robert Griesemer
d3ffc5e683
silence hlint
...
R=r
DELTA=7 (0 added, 4 deleted, 3 changed)
OCL=34310
CL=34312
2009-09-03 10:35:09 -07:00
Russ Cox
789e58cb04
unsafe is not declared in the outermost scope
...
R=gri
DELTA=3 (0 added, 3 deleted, 0 changed)
OCL=34305
CL=34305
2009-09-03 09:46:24 -07:00
Stephen Ma
5db1d3867f
Update restriction on declarations of methods.
...
APPROVED=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=34289
CL=34289
2009-09-02 20:09:25 -07:00
Rob Pike
8aec612a80
for loops
...
comment out incomplete stuff
R=rsc
DELTA=61 (58 added, 0 deleted, 3 changed)
OCL=34278
CL=34281
2009-09-02 16:41:41 -07:00
Robert Griesemer
237c8ab455
updated Implementation differences section
...
R=rsc,r
DELTA=4 (3 added, 0 deleted, 1 changed)
OCL=34204
CL=34204
2009-09-01 14:07:30 -07:00
Robert Griesemer
bdec330c85
remove leftover forward-decl syntax and example
...
(per feedback from Austin)
R=rsc
DELTA=7 (0 added, 2 deleted, 5 changed)
OCL=34158
CL=34161
2009-08-31 17:57:14 -07:00
Robert Griesemer
aeaab597db
- use "package block" nomenclature for exported identifier section
...
- same capitalization for "Declarations and scope" section as for
other sections
DELTA=23 (2 added, 1 deleted, 20 changed)
OCL=34131
CL=34156
2009-08-31 17:30:55 -07:00
Robert Griesemer
4ed666e228
doc fixes (no lang changes)
...
- added missing predeclared identifiers
- html-escaping of a few <<'s and >>'s
- added a few links (and removed the §'s)
R=r
DELTA=30 (0 added, 0 deleted, 30 changed)
OCL=33985
CL=33995
2009-08-27 16:45:42 -07:00
Robert Griesemer
1f95f0d353
tweaks
...
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=33994
CL=33994
2009-08-27 16:44:17 -07:00
Robert Griesemer
9ecd30a286
- modified type switches (replacement for CL 32659)
...
- takes into account new scoping rules
DELTA=52 (21 added, 7 deleted, 24 changed)
OCL=33967
CL=33982
2009-08-27 14:22:51 -07:00
Rob Pike
0262f8834d
fix duplicated word
...
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=33788
CL=33791
2009-08-24 16:12:59 -07:00
Rob Pike
c409976b85
semicolons, ifs, switches
...
R=rsc
DELTA=196 (118 added, 24 deleted, 54 changed)
OCL=33716
CL=33727
2009-08-23 14:00:28 -07:00
Rob Pike
d55370760f
allow "comma ok" in initializers
...
DELTA=11 (4 added, 0 deleted, 7 changed)
OCL=33698
CL=33712
2009-08-22 00:04:04 -07:00
Rob Pike
83cbca5657
rewrite type rules for expressions and add shift examples
...
DELTA=48 (22 added, 0 deleted, 26 changed)
OCL=33657
CL=33668
2009-08-21 14:18:08 -07:00
Robert Griesemer
ef45e64afc
- unifying rules for var decls, short var decls, and assignments
...
DELTA=39 (4 added, 15 deleted, 20 changed)
OCL=33639
CL=33649
2009-08-21 11:25:00 -07:00
Rob Pike
f0ccd40736
names
...
R=rsc
DELTA=96 (25 added, 5 deleted, 66 changed)
OCL=33607
CL=33612
2009-08-20 15:39:41 -07:00
Russ Cox
8a45917f3d
len and cap on chans
...
R=ken
OCL=33599
CL=33599
2009-08-20 11:12:04 -07:00
Russ Cox
7c4f7cc7eb
introduce meaningful section names, so that
...
go_spec.html#Return_statements
can be used to link to spec sections. passes hlint.
renamed final section to simply "Implementation differences"
to shorten the name, but otherwise no non-formatting changes
R=gri
DELTA=230 (10 added, 0 deleted, 220 changed)
OCL=33598
CL=33598
2009-08-20 11:11:03 -07:00
Russ Cox
fe53795422
clean up multifile package section.
...
remove ASCII digit comment that isn't true.
R=gri
DELTA=41 (1 added, 25 deleted, 15 changed)
OCL=33594
CL=33596
2009-08-20 10:47:40 -07:00
Russ Cox
16b95ba614
simplifications.
...
mark multifile section with TODO only
because that is a bigger change.
R=gri
DELTA=45 (9 added, 22 deleted, 14 changed)
OCL=33565
CL=33593
2009-08-20 10:22:52 -07:00
Robert Griesemer
0a162a1433
new scope rules
...
DELTA=137 (50 added, 24 deleted, 63 changed)
OCL=33476
CL=33553
2009-08-19 16:44:04 -07:00
Rob Pike
11e4db7c12
section about comments
...
R=rsc
DELTA=125 (13 added, 62 deleted, 50 changed)
OCL=33545
CL=33550
2009-08-19 16:39:25 -07:00
Rob Pike
22140a17a0
start of a rewrite with a different tone
...
R=rsc
DELTA=131 (61 added, 6 deleted, 64 changed)
OCL=33488
CL=33532
2009-08-19 13:24:24 -07:00
Rob Pike
5e87fb8167
delete obsolete file of notes
...
R=rsc
DELTA=263 (0 added, 263 deleted, 0 changed)
OCL=33466
CL=33485
2009-08-18 16:19:07 -07:00
Ian Lance Taylor
3e804ba7a7
There should not be a prohibition against embedding an
...
interface type in a struct. It is meaningful and the
compilers support it.
R=gri
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=33378
CL=33384
2009-08-17 11:40:57 -07:00
Robert Griesemer
4023dce70f
- remove language on forward decls
...
- remove language on (in-)complete types
DELTA=95 (8 added, 62 deleted, 25 changed)
OCL=33310
CL=33322
2009-08-14 17:41:52 -07:00
Rob Pike
401c0b3b46
get this out of the way
...
OCL=33178
CL=33180
2009-08-13 11:29:05 -07:00
Rob Pike
61028773b1
update tutorial
...
R=rsc
DELTA=30 (5 added, 0 deleted, 25 changed)
OCL=33138
CL=33170
2009-08-13 08:54:26 -07:00
Robert Griesemer
4b90833803
- clarified section on return statements
...
- added some TODOs
DELTA=46 (15 added, 4 deleted, 27 changed)
OCL=32901
CL=32918
2009-08-07 17:05:41 -07:00
Rob Pike
fe287e79c1
clean up a TODO
...
R=rsc
DELTA=45 (28 added, 4 deleted, 13 changed)
OCL=32673
CL=32675
2009-08-03 14:07:19 -07:00
Robert Griesemer
7539c8501d
language re: conversion of left operand in shift operations
...
DELTA=5 (5 added, 0 deleted, 0 changed)
OCL=32484
CL=32617
2009-07-31 18:05:07 -07:00
Rob Pike
d951ce4e45
more info about comments
...
R=rsc
DELTA=100 (82 added, 4 deleted, 14 changed)
OCL=32609
CL=32615
2009-07-31 17:54:00 -07:00
Rob Pike
d1a3b98a8d
cleanup pass before big edits
...
R=rsc
DELTA=73 (27 added, 25 deleted, 21 changed)
OCL=32587
CL=32587
2009-07-31 11:41:30 -07:00
Robert Griesemer
e1b8cb8cf0
- renamed SimpleVarDecl -> ShortVarDecl, in sync with terminology used in prose
...
- added a few TODOs
R=r
DELTA=4 (2 added, 0 deleted, 2 changed)
OCL=31751
CL=31756
2009-07-16 20:31:41 -07:00
Robert Griesemer
7c06f285d0
capital_letter was never used
...
R=rsc
DELTA=2 (0 added, 1 deleted, 1 changed)
OCL=31472
CL=31477
2009-07-10 18:21:07 -07:00
Robert Griesemer
f7ac313629
- mark actual EBNF with pre-formatted class "ebnf" instead of "grammar"
...
- make real productions for Unicode char classes so that they can be parsed
- use `` for tokens that contain "'s or \'s so that they can be parsed
- added a missing '.'
This version of the spec passes through ebnflint (forthcoming) without errors.
R=r,rsc
DELTA=74 (3 added, 1 deleted, 70 changed)
OCL=31464
CL=31466
2009-07-10 16:06:40 -07:00
Russ Cox
ec9b0428f8
various spec tunings
...
R=gri
DELTA=6 (0 added, 1 deleted, 5 changed)
OCL=31415
CL=31419
2009-07-09 16:44:13 -07:00
Rob Pike
eaf6a344b7
a few edits and simplifications.
...
R=rsc
DELTA=248 (40 added, 108 deleted, 100 changed)
OCL=31211
CL=31211
2009-07-06 15:15:56 -07:00
David Symonds
25706fec19
Fix a doc typo.
...
R=rsc
APPROVED=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=30967
CL=30990
2009-07-01 15:07:20 -07:00
Russ Cox
a0bcaf4c00
Change os.Error convention:
...
echo back context of call in error if likely to be useful.
For example, if os.Open("/etc/passwd", os.O_RDONLY)
fails with syscall.EPERM, it returns as the os.Error
&PathError{
Op: "open",
Path: "/etc/passwd"
Error: os.EPERM
}
which formats as
open /etc/passwd: permission denied
Not converted:
datafmt
go/...
google/...
regexp
tabwriter
template
R=r
DELTA=1153 (561 added, 156 deleted, 436 changed)
OCL=30738
CL=30781
2009-06-25 20:24:55 -07:00
Russ Cox
cf370a6206
add ./ to imports where necessary
...
R=r
DELTA=51 (4 added, 4 deleted, 43 changed)
OCL=30759
CL=30778
2009-06-25 20:13:56 -07:00
Russ Cox
eaa92e027b
Allow indexing of slice types, but not pointer to slice type.
...
Allow indexing of string type, but not pointer to string type.
Do not allow indexing of pointer to map type.
R=r
DELTA=18 (14 added, 0 deleted, 4 changed)
OCL=30586
CL=30754
2009-06-25 14:43:55 -07:00
Russ Cox
94439982b6
Effective Go; draft
...
TBR=r
OCL=30741
CL=30741
2009-06-25 09:38:35 -07:00
Robert Griesemer
e2cb60b378
fix for conversion rule
...
R=rsc
DELTA=25 (10 added, 7 deleted, 8 changed)
OCL=30516
CL=30531
2009-06-19 13:03:01 -07:00
Robert Griesemer
db7a6221e9
raw strings may span multiple lines
...
R=r
DELTA=7 (2 added, 0 deleted, 5 changed)
OCL=30492
CL=30494
2009-06-18 13:51:14 -07:00
Robert Griesemer
cfe9211753
- removed duplicate definition of StringLit
...
- fixed nonsense sentence in numeric basic type section
- hlinted
R=r,rsc
DELTA=50 (10 added, 22 deleted, 18 changed)
OCL=30484
CL=30490
2009-06-18 13:29:40 -07:00
Robert Griesemer
3b576a7704
fix for incorrect type switch clause:
...
- nil is not a keyword
- type -> Type
R=rsc
DELTA=10 (4 added, 0 deleted, 6 changed)
OCL=30433
CL=30435
2009-06-17 14:31:33 -07:00
Russ Cox
6609d2f88d
restructure makefiles, scripts to factor out O= logic.
...
remove a few hardcoded paths elsewhere too.
R=r,gri
DELTA=123 (44 added, 15 deleted, 64 changed)
OCL=29914
CL=29945
2009-06-05 10:59:55 -07:00
Rob Pike
6739b8d606
string([]int) is now implemented
...
R=rsc
DELTA=18 (10 added, 2 deleted, 6 changed)
OCL=29909
CL=29909
2009-06-04 16:51:47 -07:00
Russ Cox
9e0fec9c9c
update Go tree to use new syscall package.
...
R=r
DELTA=713 (109 added, 386 deleted, 218 changed)
OCL=29707
CL=29722
2009-06-01 22:14:39 -07:00
Russ Cox
d83dc4f5c6
unary ^ update.
...
[]int -> string is already in the document.
DELTA=7 (1 added, 1 deleted, 5 changed)
OCL=29622
CL=29631
2009-05-29 16:04:16 -07:00
Rob Pike
65ec16b637
Automated g4 rollback of changelist 29478.
...
*** Reason for rollback ***
these semicolons are necessary only because of a bug in 6g
*** Original change description ***
add missing semicolons in example
TBR=gri
OCL=29624
CL=29624
2009-05-29 15:46:03 -07:00
Rob Pike
c4a74b0b4a
add missing semicolons in example
...
R=rsc
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=29475
CL=29478
2009-05-27 18:31:28 -07:00
Robert Griesemer
838cf124f0
key:value notation for composites
...
R=rsc
DELTA=106 (69 added, 9 deleted, 28 changed)
OCL=29203
CL=29254
2009-05-22 10:25:06 -07:00
Russ Cox
b89a54e5c6
new, stricter interface rule:
...
in x.(T) x cannot be a nil (uninitialized) interface variable.
remove TODO per discussion.
DELTA=3 (1 added, 1 deleted, 1 changed)
OCL=29123
CL=29134
2009-05-20 18:16:04 -07:00
Robert Griesemer
c1fd171d18
removed TODO
...
(new rules on type compatibility cover this already)
DELTA=2 (0 added, 2 deleted, 0 changed)
OCL=29094
CL=29096
2009-05-20 11:10:18 -07:00
Robert Griesemer
56809d0ade
new method set rules
...
DELTA=63 (27 added, 6 deleted, 30 changed)
OCL=29065
CL=29091
2009-05-20 11:02:48 -07:00
Robert Griesemer
533dfd6291
New type compatibility rules:
...
- changed type equality to type compatibility, updated rules
- string literals have ideal string type
- conversion w/ relaxed type compatibilty
DELTA=123 (26 added, 22 deleted, 75 changed)
OCL=28763
CL=28780
2009-05-13 16:56:00 -07:00
Robert Griesemer
98b4f6ac38
cleanup of unsafe documentation
...
R=r
DELTA=19 (4 added, 7 deleted, 8 changed)
OCL=28723
CL=28732
2009-05-12 21:37:46 -07:00
Russ Cox
918afd9491
move things out of sys into os and runtime
...
R=r
OCL=28569
CL=28573
2009-05-08 15:21:41 -07:00
Rob Pike
df46b3342c
update tutorial text to refer to io.Reader etc.
...
R=rsc
DELTA=15 (0 added, 5 deleted, 10 changed)
OCL=28526
CL=28532
2009-05-08 11:21:25 -07:00
Rob Pike
fb24d792da
update spec to io.Writer
...
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=28528
CL=28531
2009-05-08 11:21:20 -07:00
Robert Griesemer
1a304e1d93
- document string([]int{...}) conversion
...
- cleanup of open issues section
R=r
DELTA=31 (12 added, 9 deleted, 10 changed)
OCL=28450
CL=28513
2009-05-08 10:25:06 -07:00
Robert Griesemer
4f18549c02
clarifying ambiguity of evaluation order
...
R=r
DELTA=16 (0 added, 3 deleted, 13 changed)
OCL=28133
CL=28178
2009-05-01 17:00:16 -07:00
Robert Griesemer
ce9fbdbee0
typo in spec
...
R=tgs
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=28032
CL=28032
2009-04-29 11:45:08 -07:00
Robert Griesemer
88a0c4071d
fixed typo in EBNF of ENBF
...
R=iant
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=27801
CL=27806
2009-04-23 14:42:21 -07:00
Robert Griesemer
40d6bb5969
- book-keeping in the TODO section:
...
- removed closed, resolved, or off-the-table items
- consolidated remaining items
- no changes to the spec
R=r
DELTA=116 (1 added, 102 deleted, 13 changed)
OCL=27596
CL=27640
2009-04-20 15:32:20 -07:00
Rob Pike
2a1683a007
spec change for redeclaration
...
R=iant,gri
DELTA=14 (14 added, 0 deleted, 0 changed)
OCL=27615
CL=27618
2009-04-19 20:04:15 -07:00
Rob Pike
aaf63f8d06
Step 1 of the Big Error Shift: make os.Error an interface and replace *os.Errors with os.Errors.
...
lib/template updated to use new setup; its clients also updated.
Step 2 will make os's error support internally much cleaner.
R=rsc
OCL=27586
CL=27586
2009-04-17 00:08:24 -07:00
Russ Cox
bcdc247f28
spec edits for array slice change
...
R=r
DELTA=6 (0 added, 2 deleted, 4 changed)
OCL=27532
CL=27582
2009-04-16 23:06:48 -07:00
Rob Pike
55faa5f10e
fix one word for consistency.
...
R=gri
OCL=27543
CL=27543
2009-04-15 21:49:50 -07:00
Rob Pike
dfff1829d4
update tutorial for new slicing rules.
...
R=rsc
DELTA=13 (6 added, 0 deleted, 7 changed)
OCL=27539
CL=27541
2009-04-15 20:53:07 -07:00
Rob Pike
b340879ce3
tweak grammar and associated prose to permit things like x.y in range clauses.
...
R=rsc
DELTA=5 (3 added, 0 deleted, 2 changed)
OCL=27536
CL=27540
2009-04-15 20:51:17 -07:00
Rob Pike
7aee71bd4f
spec for range on strings
...
R=rsc,iant
DELTA=17 (11 added, 0 deleted, 6 changed)
OCL=27529
CL=27535
2009-04-15 20:28:25 -07:00
Russ Cox
60ce95d7a1
code changes for array conversion.
...
as a reminder, the old conversion
was that you could write
var arr [10]byte;
var slice []byte;
slice = arr;
but now you have to write
slice = &arr;
the change eliminates an implicit &, so that
the only implicit &s left are in the . operator
and in string(arr).
also, removed utf8.EncodeRuneToString
in favor of string(rune).
R=r
DELTA=83 (1 added, 23 deleted, 59 changed)
OCL=27531
CL=27534
2009-04-15 20:27:45 -07:00
Rob Pike
c956e90913
add a section about order of evaluation
...
DELTA=32 (29 added, 2 deleted, 1 changed)
OCL=27197
CL=27469
2009-04-14 20:10:49 -07:00
Rob Pike
736a1aeb81
an attempt at simpler yet more correct semicolon rules.
...
(i'd be happy to drop the paren one as well, reducing it to one case)
DELTA=4 (0 added, 3 deleted, 1 changed)
OCL=27058
CL=27060
2009-04-02 23:03:41 -07:00
Rob Pike
f538760552
fix last 3 references to 'type guards'
...
R=gri
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=26908
CL=26908
2009-03-30 16:08:41 -07:00
Robert Griesemer
c5c577c1ff
- minor tweak to composite literal production:
...
renamed PairExpr -> KeyValueExpr and PairExprList -> KeyValueList
(to match corresponding nodes in AST per rsc' suggestion)
- added a couple of TODOs
R=r,rsc
DELTA=10 (2 added, 0 deleted, 8 changed)
OCL=26837
CL=26840
2009-03-27 13:43:28 -07:00
Robert Griesemer
62fd90ab76
use FunctionType in FunctionLit production
...
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=26738
CL=26753
2009-03-25 13:58:44 -07:00
Rob Pike
21d03496e7
add some words (written by rsc) about the state of typed constants.
...
DELTA=31 (31 added, 0 deleted, 0 changed)
OCL=26709
CL=26716
2009-03-24 19:16:42 -07:00
Rob Pike
1141716c5c
change notation: s/Stat/Stmt/ in grammatical productions
...
DELTA=26 (0 added, 0 deleted, 26 changed)
OCL=26703
CL=26705
2009-03-24 17:45:53 -07:00
Rob Pike
94b67eb8d8
delete incorrect, dreg example of select on type
...
R=gri,rsc
DELTA=48 (28 added, 11 deleted, 9 changed)
OCL=26630
CL=26701
2009-03-24 17:40:47 -07:00
Rob Pike
482cbb1f33
change file name so it can be copied without name change to a more public place.
...
R=rsc
DELTA=1090 (545 added, 545 deleted, 0 changed)
OCL=26629
CL=26629
2009-03-22 21:53:40 -07:00
Rob Pike
afee1c5f0c
add simple text about & and *.
...
clean up html: PLEASE RUN TIDY WHEN YOU EDIT THIS DOCUMENT
deferring method value update until we decide what happens.
R=gri
DELTA=50 (38 added, 4 deleted, 8 changed)
OCL=26609
CL=26612
2009-03-20 17:41:25 -07:00
Rob Pike
2a5af744a6
fix wording of &T{x}
...
R=rsc
DELTA=5 (0 added, 2 deleted, 3 changed)
OCL=26607
CL=26607
2009-03-20 17:03:48 -07:00
Robert Griesemer
091cba8d03
minor adjustments to switches text
...
R=r
DELTA=16 (5 added, 1 deleted, 10 changed)
OCL=26530
CL=26543
2009-03-19 08:39:40 -07:00
Rob Pike
37ab838d3a
&Foo{x,y} wasn't in the spec. This gets it in, dependent on a proper section regarding
...
address operators, to follow.
R=rsc
DELTA=11 (10 added, 0 deleted, 1 changed)
OCL=26529
CL=26532
2009-03-18 22:58:36 -07:00
Rob Pike
70c1a106e6
drop the ,ok switch; keep the straight type switch.
...
R=rsc,gri
DELTA=97 (26 added, 42 deleted, 29 changed)
OCL=26436
CL=26527
2009-03-18 19:23:59 -07:00
Rob Pike
bdbb3b455e
remove print() from the tutorial, generating a little clumsiness around "import"
...
R=rsc,gri
DELTA=103 (36 added, 33 deleted, 34 changed)
OCL=26442
CL=26491
2009-03-18 14:09:16 -07:00
Rob Pike
5a5784977a
type switches
...
R=rsc,gri
DELTA=107 (90 added, 1 deleted, 16 changed)
OCL=26420
CL=26427
2009-03-17 16:48:35 -07:00
Rob Pike
e9f4fb2839
change the tutorial to use File, file rather than FD, fd.
...
also make the default input for makehtml be go_tutorial.txt.
R=rsc
DELTA=176 (58 added, 58 deleted, 60 changed)
OCL=26374
CL=26374
2009-03-16 22:53:23 -07:00
Robert Griesemer
dea4394a67
instead of unlabeled statements, have a single labeled statement
...
- no syntactic or semantic change
R=r
DELTA=45 (24 added, 18 deleted, 3 changed)
OCL=26349
CL=26368
2009-03-16 17:36:52 -07:00
Russ Cox
f8ba0f4511
mem.html: nit
...
go_spec.html: document const type propagation
R=ken
OCL=26223
CL=26225
2009-03-12 19:04:56 -07:00
Rob Pike
9b5d82327b
s/expressios/expressions/
...
OCL=26222
CL=26222
2009-03-12 18:47:49 -07:00
Rob Pike
e20834092f
weasel words about types in shift expressions suggested by rsc
...
R=rsc
OCL=26220
CL=26220
2009-03-12 18:40:07 -07:00
Rob Pike
ce9417ee1a
fix language regarding type of numeric literals
...
R=rsc
DELTA=4 (0 added, 2 deleted, 2 changed)
OCL=26208
CL=26212
2009-03-12 17:08:47 -07:00
Rob Pike
307ec21932
what is the name for "&^". let's go with bit clear (and not)
...
R=rsc
DELTA=14 (0 added, 0 deleted, 14 changed)
OCL=26159
CL=26206
2009-03-12 15:53:56 -07:00
Rob Pike
0282719387
fix unqouted &
...
R=gri
OCL=26158
CL=26158
2009-03-11 22:02:18 -07:00
Rob Pike
cd04ec95ea
bit clear: &^ and &^=
...
R=gri
DELTA=5 (3 added, 0 deleted, 2 changed)
OCL=26155
CL=26157
2009-03-11 21:59:05 -07:00
Rob Pike
ef1b9653dd
conversions are mostly cleaned up; bring the spec in line.
...
R=gri
DELTA=31 (12 added, 18 deleted, 1 changed)
OCL=25974
CL=25976
2009-03-09 22:35:06 -07:00
Robert Griesemer
b813ee0e44
revert QualifiedIdent to old production
...
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25732
CL=25777
2009-03-05 15:01:54 -08:00
Rob Pike
811dd2584c
fix an HTML glitch.
...
say a little more about package main.
R=rsc
DELTA=7 (4 added, 0 deleted, 3 changed)
OCL=25725
CL=25725
2009-03-04 20:39:39 -08:00
Russ Cox
5958dd6f94
Suggested tweaks up to package section.
...
Major ones:
* Be consistent: "numeric type" and "arithmetic operator".
* if/swtch take "simple statement" not "short variable declaration".
* There was a comment that implied for x,y := range z() might
evaluate z() multiple times. I deleted it.
R=r,gri
DELTA=124 (24 added, 4 deleted, 96 changed)
OCL=25706
CL=25715
2009-03-04 17:19:21 -08:00
Russ Cox
461dd9126c
change Go logo to link to home page
...
fix grammar for forward declaration of interface, struct.
move array down next to slice.
fix type equal example for structs.
R=r,gri
DELTA=247 (122 added, 114 deleted, 11 changed)
OCL=25694
CL=25704
2009-03-04 14:44:51 -08:00
Rob Pike
337ce2220f
rephrase redundancy.
...
R=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25652
CL=25656
2009-03-03 16:10:15 -08:00
Russ Cox
7a5e97ba91
The final piece of the alternative to my parens proposal
...
(i.e., the status quo with braces in composite literals).
DELTA=20 (16 added, 0 deleted, 4 changed)
OCL=25640
CL=25646
2009-03-03 15:40:30 -08:00
Russ Cox
be2edb5761
Automated g4 rollback of changelist 25024,
...
plus significant hand editing.
Back to T{x} for composite literals.
R=r
OCL=25612
CL=25632
2009-03-03 08:39:12 -08:00
Russ Cox
e8b43190bb
clarify conversions vs type guards.
...
allow conversions between equal types.
R=r
DELTA=15 (4 added, 4 deleted, 7 changed)
OCL=25618
CL=25630
2009-03-03 08:10:25 -08:00
Rob Pike
da34bea950
redo poor example of slices.
...
R=rsc
OCL=25614
CL=25614
2009-03-02 20:17:12 -08:00
Rob Pike
da38974c88
address most of the editorial comments through "types"
...
R=rsc
DELTA=41 (9 added, 4 deleted, 28 changed)
OCL=25611
CL=25611
2009-03-02 19:13:40 -08:00
Rob Pike
426335f87b
delete paragraph about unimplemented select-on-type feature.
...
change () to {} in all composite literals
DELTA=20 (0 added, 7 deleted, 13 changed)
OCL=25604
CL=25606
2009-03-02 17:52:52 -08:00
Rob Pike
4659685b8f
Packages.
...
DELTA=170 (73 added, 21 deleted, 76 changed)
OCL=25556
CL=25594
2009-03-02 16:17:29 -08:00
Rob Pike
96750f130c
most of the rest.
...
only the package section is untouched.
R=gri
DELTA=542 (186 added, 70 deleted, 286 changed)
OCL=25485
CL=25532
2009-02-27 16:47:48 -08:00
Rob Pike
df3183f528
finish types.
...
expressions. (they were in pretty good shape; mostly cosmetic and HTML edits)
R=gri
DELTA=655 (226 added, 97 deleted, 332 changed)
OCL=25459
CL=25481
2009-02-26 16:37:23 -08:00
Robert Griesemer
f88c6c136c
fixed a typo
...
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=25449
CL=25449
2009-02-25 16:58:57 -08:00
Rob Pike
8f2330dd7a
Continue editing types section.
...
Do a little work polishing the "zero value" discussion.
R=gri
DELTA=486 (129 added, 120 deleted, 237 changed)
OCL=25392
CL=25444
2009-02-25 16:20:44 -08:00
Rob Pike
cdbf619750
complete types
...
R=gri
DELTA=29 (0 added, 12 deleted, 17 changed)
OCL=25388
CL=25391
2009-02-24 17:47:45 -08:00
Rob Pike
a49305df1d
text and formatting are now folded into go_spec; delete
...
OCL=25292
CL=25383
2009-02-24 15:18:21 -08:00
Rob Pike
5af7de3fe3
Updated the section on Types.
...
Moved assignment compatibility to its own small section. Although most rules are type-specific,
some are not and it reduces redundancy to combine them.
Also, more experimentally, wrote a section on comparison compatibility.
R=gri
DELTA=382 (125 added, 122 deleted, 135 changed)
OCL=25355
CL=25382
2009-02-24 15:17:59 -08:00
Rob Pike
a9ed30ff37
Move Types before Declarations and Scopes.
...
This is the only change in this CL: only rearrangement, no content change, so subsequent edits will be easier to understand.
R=gri
OCL=25353
CL=25353
2009-02-23 19:26:07 -08:00
Rob Pike
f27e9f072d
Work on declarations, unsafe, alignment.
...
Change <tt> to <code>
R=gri
DELTA=664 (222 added, 189 deleted, 253 changed)
OCL=25294
CL=25352
2009-02-23 19:22:05 -08:00
Rob Pike
ce2bc3aabc
add logo to documentation directory.
...
R=rsc
OCL=25293
CL=25293
2009-02-22 15:39:50 -08:00
Russ Cox
82c38cf8dd
draft of memory model.
...
R=tgs
DELTA=545 (545 added, 0 deleted, 0 changed)
OCL=25212
CL=25268
2009-02-20 15:35:20 -08:00
Rob Pike
ff70f09d27
Rewrite lexical section.
...
Put grammar productions into a box with a separate background color.
R=gri
DELTA=397 (132 added, 49 deleted, 216 changed)
OCL=25235
CL=25258
2009-02-20 13:36:14 -08:00
Rob Pike
fd1f3830c1
autogenerate the table of contents
...
R=rsc
DELTA=149 (1 added, 145 deleted, 3 changed)
OCL=25231
CL=25234
2009-02-19 19:49:56 -08:00
Rob Pike
4501d348e8
Fix most HTML errors.
...
Cut introduction.
Start rewrite.
R=gri
DELTA=201 (20 added, 118 deleted, 63 changed)
OCL=25226
CL=25229
2009-02-19 17:31:36 -08:00
Robert Griesemer
c2d5586c76
go_spec.txt formatted in html.
...
No textual changes except for html formatting.
Seems like a fine intermediate step.
R=r
DELTA=7638 (4079 added, 3559 deleted, 0 changed)
OCL=25211
CL=25224
2009-02-19 16:49:10 -08:00
Rob Pike
3d50b1e0e8
Finish the lexical section.
...
DELTA=176 (172 added, 0 deleted, 4 changed)
OCL=25182
CL=25222
2009-02-19 16:20:00 -08:00
Rob Pike
d1107adb52
First piece of Go reference manual.
...
R=ken,gri,rsc
DELTA=185 (185 added, 0 deleted, 0 changed)
OCL=25133
CL=25169
2009-02-18 15:39:51 -08:00
Russ Cox
9f8f2e6130
convert composite literals from { } to ( ).
...
only non-trivial changes are in
convlit1.go
golden.out
R=gri
OCL=25019
CL=25024
2009-02-13 14:48:32 -08:00
Robert Griesemer
6f8df7aa3e
- syntax for composite literals use () instead of {}
...
- do not permit + for array concatenation anymore
(not implemented and not a good idea)
- document that unsafe function results are compile time constants
- fixed minor typos
DELTA=41 (7 added, 11 deleted, 23 changed)
OCL=24899
CL=24927
2009-02-11 21:57:15 -08:00
Robert Griesemer
38c232fe37
- language for embedded interfaces (as discussed this morning)
...
- fixed a syntax error
R=r
DELTA=17 (15 added, 0 deleted, 2 changed)
OCL=24876
CL=24889
2009-02-11 15:09:15 -08:00
Robert Griesemer
52c02c2d5d
Added section on package unsafe:
...
- contains a (proposed) constant Maxalign
- contains some text re" alignment guarantees
R=ken,r
DELTA=97 (94 added, 1 deleted, 2 changed)
OCL=24791
CL=24871
2009-02-11 13:46:30 -08:00
Rob Pike
6506148850
a few small cleanups
...
R=rsc
DELTA=21 (2 added, 2 deleted, 17 changed)
OCL=24638
CL=24654
2009-02-08 10:17:23 -08:00
Robert Griesemer
d8a764cc7e
- removed todo and restriction from spec (closures)
...
- fixed typos, added a reminder for a todo
R=r
DELTA=23 (6 added, 4 deleted, 13 changed)
OCL=24611
CL=24615
2009-02-06 17:01:10 -08:00
Robert Griesemer
77ccfb090c
making go-spec conform with 6g:
...
- equality of struct types requires equality of field names
DELTA=4 (0 added, 1 deleted, 3 changed)
OCL=24478
CL=24487
2009-02-05 16:11:14 -08:00
Rob Pike
6aabf31a83
a few tweaks triggered by tgs's comments
...
DELTA=46 (25 added, 1 deleted, 20 changed)
OCL=24342
CL=24354
2009-02-04 15:13:07 -08:00
Rob Pike
25a2b3626d
needless semicolons
...
R=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=23967
CL=23970
2009-01-30 15:10:22 -08:00
Robert Griesemer
2b9fe0ea24
Test balloon: Changed the spec to see the implications of changing the
...
syntax of function types and making them "reference types" like slice,
map, and chan. First step in Russ' proposal.
DELTA=111 (32 added, 15 deleted, 64 changed)
OCL=23669
CL=23964
2009-01-30 14:48:29 -08:00
Russ Cox
4cf7711568
update go code tree to new func rules.
...
R=r
DELTA=367 (111 added, 59 deleted, 197 changed)
OCL=23957
CL=23960
2009-01-30 14:39:31 -08:00
Rob Pike
b59dbd7fe0
rename variable at rsc's request
...
R=rsc
DELTA=4 (0 added, 0 deleted, 4 changed)
OCL=23896
CL=23928
2009-01-30 11:14:48 -08:00
Rob Pike
96777ea2a7
clean up server code in tutorial
...
R=rsc
DELTA=15 (1 added, 0 deleted, 14 changed)
OCL=23889
CL=23889
2009-01-30 10:18:58 -08:00
Robert Griesemer
7471eab96f
- added missing sections on comparisons for some types
...
- clarified legal map key types (must support comparison)
- updated open issues/todo list
R=r
DELTA=81 (48 added, 19 deleted, 14 changed)
OCL=23580
CL=23621
2009-01-27 14:51:24 -08:00
Robert Griesemer
4a903e0b32
defer statement
...
R=r
DELTA=30 (26 added, 0 deleted, 4 changed)
OCL=23533
CL=23569
2009-01-27 09:29:40 -08:00
Robert Griesemer
18b05c1a8d
- clarified slice index bounds rules
...
- clarified comparisons of interfaces, slices, maps, channels
- removed respective TODO's
R=r
DELTA=76 (42 added, 16 deleted, 18 changed)
OCL=23132
CL=23479
2009-01-26 09:34:19 -08:00
Robert Griesemer
ae299f0d69
cosmetic change only:
...
- slightly simplified a couple of productions (CommClause, SwitchClause)
by reordering
R=r
DELTA=5 (0 added, 0 deleted, 5 changed)
OCL=23304
CL=23323
2009-01-22 15:16:48 -08:00
Rob Pike
ae05f00b46
update tutorial for new export scheme
...
R=ken,rsc
DELTA=101 (9 added, 0 deleted, 92 changed)
OCL=23174
CL=23188
2009-01-20 19:32:36 -08:00
Russ Cox
839a68469b
delete export
...
TBR=r
OCL=23121
CL=23127
2009-01-20 14:40:40 -08:00
Robert Griesemer
9f4a27cbe6
- added TODO
...
R=r
DELTA=3 (3 added, 0 deleted, 0 changed)
OCL=23003
CL=23003
2009-01-16 15:44:08 -08:00
Robert Griesemer
1593ab6bb4
- cleanup todo list
...
- fixed language for arrays slightly
R=r
DELTA=81 (39 added, 25 deleted, 17 changed)
OCL=23000
CL=23000
2009-01-16 15:36:46 -08:00
Russ Cox
360962420c
casify, cleanup sys
...
R=r
OCL=22978
CL=22984
2009-01-16 14:58:14 -08:00
Robert Griesemer
83c17606d7
- language for export via capitalized identifiers
...
- removed explicit "export" declarations and keyword
- fixed a few glitches and adjusted examples
(The details of what "export" mean should be clarified
in the spec, this is just so we have a working doc for
now.)
R=r
DELTA=131 (7 added, 63 deleted, 61 changed)
OCL=22753
CL=22970
2009-01-16 14:12:50 -08:00
Rob Pike
1a91b9a8a9
casify syscall and sequelae
...
R=rsc
DELTA=337 (0 added, 1 deleted, 336 changed)
OCL=22950
CL=22950
2009-01-16 11:36:44 -08:00
Rob Pike
293c8f8c65
casify tutorial examples
...
will bring document in line in a later CL, which may include revisiting some of the names
R=rsc
DELTA=58 (0 added, 0 deleted, 58 changed)
OCL=22906
CL=22908
2009-01-15 17:54:07 -08:00
Rob Pike
61f3302044
printf->Printf etc.
...
the raw fmt routines will be another, smaller but subtler pass.
R=rsc
DELTA=157 (0 added, 0 deleted, 157 changed)
OCL=22851
CL=22851
2009-01-15 13:48:11 -08:00
Rob Pike
ef51f4baf4
restore "os" identifier to keep consistent with text.
...
R=presotto
OCL=22733
CL=22733
2009-01-14 08:43:32 -08:00
Rob Pike
40d5435278
update tutorial to new language.
...
add a section on printing
add a section on allocation
R=rsc
DELTA=500 (278 added, 15 deleted, 207 changed)
OCL=22381
CL=22456
2009-01-09 15:16:31 -08:00
Ian Lance Taylor
dfc3e52310
Use make instead of new to allocate a channel.
...
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=22452
CL=22455
2009-01-09 15:13:26 -08:00
Robert Griesemer
91bbd6484b
Adjusted language for literals:
...
- now have struct, array, slice, and map literals
DELTA=34 (13 added, 6 deleted, 15 changed)
OCL=22180
CL=22204
2009-01-07 09:31:35 -08:00
Rob Pike
8d21004b41
make the tutorial programs run again.
...
(the text still needs fixing)
add the tutorial programs to the test run.
R=rsc
DELTA=41 (6 added, 0 deleted, 35 changed)
OCL=22174
CL=22174
2009-01-06 15:49:27 -08:00
Robert Griesemer
633957bcce
- documenting old "new()"
...
- adding "init()"
- fixing some bugs with slice documentation
DELTA=118 (45 added, 7 deleted, 66 changed)
OCL=22084
CL=22136
2009-01-06 13:23:20 -08:00
Robert Griesemer
a329471ced
A first attempt to capture the type changes.
...
Instead of trying to make open arrays look like arrays (which they aren't,
they just look like them), I decided to call them "slice types". As a result
they have value semantics, and one can really talk about what they really are.
Note:
- There are lots of missing details
- There are probably lots of mistakes
Looking for some initial feedback.
R=r
DELTA=444 (180 added, 189 deleted, 75 changed)
OCL=21769
CL=22020
2009-01-05 11:17:26 -08:00
Robert Griesemer
6ccca61510
- receiver ident may be optional
...
R=r
DELTA=5 (2 added, 0 deleted, 3 changed)
OCL=21508
CL=21510
2008-12-18 13:29:11 -08:00
Robert Griesemer
4d23030859
- ripped out excessively fancy way of describing grammar
...
in favor of explicit constructs
- simpler, clearer, and shorter overall
- no spec changes
(in retrospect it was just a (my) mistake to put it in in the first place)
R=r
DELTA=55 (13 added, 28 deleted, 14 changed)
OCL=21434
CL=21462
2008-12-17 15:39:15 -08:00
Robert Griesemer
6715358652
- Add introduction section (1 page), essentially a condensed form
...
of an earlier intro.
- Updated contents section.
- Removed left-over text from earlier documents.
No spec changes.
R=r
DELTA=379 (147 added, 227 deleted, 5 changed)
OCL=21312
CL=21331
2008-12-16 14:45:09 -08:00
Robert Griesemer
30a1a8c922
language for range clause
...
(I have deliberately left away the forms w/ := or = and
the forms with :)
R=r
DELTA=106 (44 added, 13 deleted, 49 changed)
OCL=21192
CL=21283
2008-12-16 11:38:56 -08:00
Robert Griesemer
ef77c22626
- fixed minor bug in example (found by ken)
...
R=r
OCL=21272
CL=21272
2008-12-16 10:45:39 -08:00
Robert Griesemer
9dfb2ea7af
closing a TODO:
...
- define integer overflow as wrap-around
- be more specific about machine representation
DELTA=54 (34 added, 7 deleted, 13 changed)
OCL=20870
CL=21070
2008-12-12 10:30:10 -08:00
Robert Griesemer
7354b864b5
Revised proposal for const/var cleanup, with
...
Ken's suggestion for the "iota" extension to tuples.
DELTA=171 (88 added, 57 deleted, 26 changed)
OCL=20460
CL=20544
2008-12-04 17:33:37 -08:00
Robert Griesemer
337af31781
- allow for multiple method names per function type in an interface decl.
...
- added some initial language with respect to exports
R=r
DELTA=95 (47 added, 31 deleted, 17 changed)
OCL=19407
CL=19426
2008-11-17 18:11:36 -08:00
Robert Griesemer
a1c85ed83e
Package-export proposal:
...
- syntax change
- missing: corresponding language
DELTA=5 (2 added, 0 deleted, 3 changed)
OCL=19221
CL=19352
2008-11-17 09:51:56 -08:00
Robert Griesemer
434c6052d8
- language to define type equality rigorously
...
- language for type guards
- fixed language for break statements
Also: Removed uses of "we" and replaced by impersonal language.
Minor cosmetic changes.
DELTA=237 (160 added, 34 deleted, 43 changed)
OCL=18620
CL=18800
2008-11-07 13:34:37 -08:00
Robert Griesemer
69e26bf28d
- added (incomplete) section on parameter passing
...
- decribe passing of "..." parameters for a start
R=r
DELTA=70 (69 added, 0 deleted, 1 changed)
OCL=18503
CL=18503
2008-11-04 16:46:45 -08:00
Robert Griesemer
f618f8940d
- keeping track of to-do items
...
R=r
DELTA=15 (10 added, 3 deleted, 2 changed)
OCL=18334
CL=18336
2008-11-03 10:52:28 -08:00
Robert Griesemer
2e90e5424e
- language for struct field tags
...
DELTA=17 (15 added, 0 deleted, 2 changed)
OCL=18177
CL=18184
2008-10-30 15:52:37 -07:00
Robert Griesemer
ebf14c625d
- clarified section on numeric types: platform-dependent types
...
are different from platform-independent types (not just aliases),
except for byte, uint8
- added missing documentation of new(a, len, cap)
- updated todo/issues lists
DELTA=70 (24 added, 21 deleted, 25 changed)
OCL=17920
CL=18174
2008-10-30 14:50:23 -07:00
Robert Griesemer
2bfa95741f
Preparation for varargs: Proposal for syntax.
...
DELTA=11 (7 added, 0 deleted, 4 changed)
OCL=17772
CL=17804
2008-10-24 13:13:12 -07:00
Robert Griesemer
4712165b17
- clarified that composites are values created every time they
...
are evaluated, removed corresponding TODO.
R=r
DELTA=5 (3 added, 1 deleted, 1 changed)
OCL=17746
CL=17751
2008-10-23 17:19:56 -07:00
Robert Griesemer
071c91bf48
First cut at incorporating anonymous fields of pointer types into the
...
spec.
I have deliberately removed the wording about receivers where it was
before because I think it needs to be more precise. There is a TODO.
DELTA=90 (54 added, 0 deleted, 36 changed)
OCL=17597
CL=17716
2008-10-23 12:04:45 -07:00