logoalt Hacker News

knorkerlast Thursday at 1:53 PM0 repliesview on HN

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.