5 ms·
A big new concept in Go is that methods can have value receivers or pointer receivers. In C++ and Java, there is no distinction. Plus, method calls automaticall
by tylerhou 4y ago
A big new concept in Go is that methods can have value receivers or pointer receivers. In C++ and Java, there is no distinction. Plus, method calls automatically deref pointers.
I think it took me a day to realize this when my code wasn't compiling.
That, and goroutines + channels (especially blocking behavior).