|
|
|
|
|
by joshuaellinger
4703 days ago
|
|
Odd choice of examples... 1. The file I/O makes the case for including exceptions in the language.
Specifically, adding one-off types to deal with exceptions is a bug, not a feature.
There is a good case against exceptions but that ain't it. 2. On slide 5, it appears to show that you have to use a switch statement on a generic
to get polymorphism because the language doesn't support overloading. Again, looks more
like a bug than a feature. Also, is the "break;" implicit in Go? At first glance, it looks like a coding error. |
|
> is the "break;" implicit in Go?
Yes. http://golang.org/doc/effective_go.html#switch