Good post. Shows very well which aspects of Go is easy to pick up, and which isn't.
The code examples naturally shows an how a newcomer would approach this.
I have no idea where the author picked up "A major recurring point is that Go seems to advocate runtime over compile time checking", which couldn't be more false IMO.
For fun, I did a quick re-write of how it typically would look:
Good post. Shows very well which aspects of Go is easy to pick up, and which isn't.
The code examples naturally shows an how a newcomer would approach this.
I have no idea where the author picked up "A major recurring point is that Go seems to advocate runtime over compile time checking", which couldn't be more false IMO.
For fun, I did a quick re-write of how it typically would look:
Gist, since this doesn't really handle inline code ;)
https://gist.github.com/klauspost/e6105a857de22a028171