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

Interesting! This could be true. I'll play around with this in a bit.


Yeah I think what you're describing, returning a slice thus copying a reference to the same array (but not copying the array), then destroying the callee slice not causing the array to be freed, is just basic garbage collection logic, not escape analysis.




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

Search: