News for hackers. Stuff that matters.
Re:Golang landmines by eternalban on Sunday September 18, 2016 @12:19PM (#12525848)
That terminal '}()' is there for a reason.

https://play.golang.org/p/zyMbmJsnUz // minor mod of donatj's example.

Re:Golang landmines by catnaroek on Sunday September 18, 2016 @01:35PM (#12526185)
This is reminiscent of the common Python hack `lambda n=n: whatever`. Well, it's a hack.