Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(985)

Delta Between Two Patch Sets: 2014/go4java.slide

Issue 112340043: code review 112340043: go.talks: Fixing typo and wrong comment on code (Closed)
Left Patch Set: Created 9 years, 8 months ago
Right Patch Set: diff -r ffc31a3242b5 https://code.google.com/p/go.talks Created 9 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | 2014/go4java/writecounter.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 Go for Javaneros (Javaïstes?) 1 Go for Javaneros (Javaïstes?)
2 #go4java 2 #go4java
3 3
4 Francesc Campoy 4 Francesc Campoy
5 Gopher and Developer Advocate 5 Gopher and Developer Advocate
6 Google 6 Google
7 @francesc 7 @francesc
8 campoy@golang.org 8 campoy@golang.org
9 9
10 * What is Go? 10 * What is Go?
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 Receivers behave like any other argument. 252 Receivers behave like any other argument.
253 253
254 Pointers allow modifying the pointed receiver: 254 Pointers allow modifying the pointed receiver:
255 255
256 func (p *Person) IncAge() { 256 func (p *Person) IncAge() {
257 p.age++ 257 p.age++
258 } 258 }
259 259
260 The method receiver is a copy of a pointer (pointing to the same address). 260 The method receiver is a copy of a pointer (pointing to the same address).
261 261
262 Method calls on nil receivers are perfectly valid (and useulf!). 262 Method calls on nil receivers are perfectly valid (and useful!).
263 263
264 func (p *Person) Name() string { 264 func (p *Person) Name() string {
265 if p == nil { 265 if p == nil {
266 return "anonymous" 266 return "anonymous"
267 } 267 }
268 return p.name 268 return p.name
269 } 269 }
270 270
271 * Interfaces 271 * Interfaces
272 272
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 658
659 * What to do next? 659 * What to do next?
660 660
661 Learn Go on your browser with [[http://tour.golang.org][tour.golang.org]] 661 Learn Go on your browser with [[http://tour.golang.org][tour.golang.org]]
662 662
663 Find more about Go on [[http://golang.org][golang.org]] 663 Find more about Go on [[http://golang.org][golang.org]]
664 664
665 Join the community at [[https://groups.google.com/forum/#!forum/Golang-nuts][gol ang-nuts]] 665 Join the community at [[https://groups.google.com/forum/#!forum/Golang-nuts][gol ang-nuts]]
666 666
667 Link to the slides [[http://talks.golang.org/2014/go4java.slide]] 667 Link to the slides [[http://talks.golang.org/2014/go4java.slide]]
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b