News for hackers. Stuff that matters.
Re:3.5 Years, 500k Lines of Go by pcwalton on Friday March 24, 2017 @02:32PM (#13951099)
> How much memory will it cause to be allocated?

In Go, it's impossible to tell because "a" might be captured by a closure, in which case it will be heap-allocated. But if escape analysis promoted it to the stack or a register, then it will not allocate memory.

There are no comments on this comment yet.