Comment

Comment by retroencabulato

> Everyone expects these values to be scoped inside the loop, but go reuses the same memory location for every iteration.

I don't see this as surprising as a C++ user. Who is 'everyone' here?

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton