forked from aQuaYi/MIT-6.824-Distributed-Systems
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.md
23 lines (16 loc) · 1.01 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# LECTURE 09 Guest lecturer on Go (Russ Cox Google/Go)
## FAQ
1. Can I stop these complaints about my unused variable/import?
1. Is the defer keyword in other languages?
1. Why is the type after the variable declaration, unlike C languages?
1. Why not adopt classes and OOP like in C++ and Java?
1. Why does struct require a trailing comma on a multiline definition?
1. Why are list definitions inconsistent, where some need commas and some do not?
1. Why does Go name its while loops "for"?
1. 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?
1. Why the focus on concurrency and goroutines?
## 课堂内容
[PPT](gopattern.pdf)
[FAQ 答案](go-faq.txt)
## 作业
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?