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

In fairness while that would be a lot less convenient in reference-based langages in Go you could just close over a pointer to the variable, making the relationship explicit.

That’s how you’d do it using a [=] lambda in c++ or a move closure in rust.



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

Search: