|
|
|
|
|
by knorker
196 days ago
|
|
Yes. That's escape analysis. But this is not what OP did. What you wrote is not the same in C and Go, because GC and escape analysis. But 9rx is also correct that what OP wrote is the same in C and Go. So OP almost learned about escape analysis, but their example didn't actually do it. So double confusion on their side. |
|