Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

LECTURE 09 Guest lecturer on Go (Russ Cox Google/Go)

FAQ

  1. Can I stop these complaints about my unused variable/import?
  2. Is the defer keyword in other languages?
  3. Why is the type after the variable declaration, unlike C languages?
  4. Why not adopt classes and OOP like in C++ and Java?
  5. Why does struct require a trailing comma on a multiline definition?
  6. Why are list definitions inconsistent, where some need commas and some do not?
  7. Why does Go name its while loops "for"?
  8. There seem to be a lot of new languages emerging these days, including Rust, D, Swift and Nim, among probably others. Are there any lessons you've learned from these other languages and their communities that you wish you'd been able to incorporate into Go?
  9. Why the focus on concurrency and goroutines?

课堂内容

PPT

FAQ 答案

作业

Russ Cox is one of the leads on the Go project. What do you like best about Go? Why? Would you want to change anything in the language? If so, what and why?