3 ms·
> The best part of Go is the fact that it forces error checking. Except that it doesn't. Otherwise you would be forced to check the return type of fmt.Printf()
by azth 13y ago
> The best part of Go is the fact that it forces error checking.
Except that it doesn't. Otherwise you would be forced to check the return type of fmt.Printf() and gang.
- jamra 13y agoOk. So idiomatic go returns multiple values with an intention to return an error type. I guess fmt.Printf() is an exception. For the most part, it does as well as C does.
- azth 13y ago> For the most part, it does as well as C does. Which isn't saying much really :) There is absolutely no way to force you to handle errors in Go.
- stcredzero 13y ago>> > The best part of Go is the fact that it forces error checking. > Except that it doesn't. Depending on the value of "forces" used. Maybe "forces" in the sense of "only viable option for someone not programming foolishly."