Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Then just return a value representing what you want, instead of breaking a convention and hacking something and hoping that at use site someone else has read the comment.

Also, just let the use site pass in (out variable, pointer, mutable object, whatever your language has) something to store partial results.





> instead of breaking a convention and hacking something and hoping

It's not a convention in Go, so it's not breaking any expectations




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: