3 ms·
> One question: why have named return values (in learnMemory) if you return something different? If you didn't have a return statement at all, would the functio
by stock_toaster 13y ago
> One question: why have named return values (in learnMemory) if you return something different? If you didn't have a return statement at all, would the function return the final value of p and q?
Kinda. You still have a return statement, but you may omit the arguments.
See: http://golang.org/doc/effective_go.html#named-results http://golang.org/doc/effective_go.html#named-results