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

> First, assuming that the keys iterate in the order they're inserted, the cliche problem.

Author here.

I never assume that hash maps can be iterated in the same order as the insertion in any language, however the fact that in Go each iteration results in a different ordering is surprising.



Good practice. My experience says that Python programmers consciously or unconsciously make that assumption often, which is bad practice.




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

Search: