Better HN
topnewbestaskshowjobs
Log inSign up

questhrowaway

1 karma · joined Jun 22, 2017 (9y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

I don't know Python or Go, but both examples seem _wrong_.

Python: How is `Fred` available to be printed in the Python example, is not it out of scope?

Go: Why use `var fredPtr *Student`? What's the point? Can not use `var fredPtr Student` and the set `fredPtr = student` in the loop?