Hacker News new | past | comments | ask | show | jobs | submit login

GP explicitly covered this: Just expand your fixed-size array to the required size, it's still not a big array. It solves the exact problem, the map is overkill and overly complicated. The problem is, the map is only more complicated in the resulting binary, not in the library users' source code.



Not sure the binary comes into it. The map in this language has a more complicated API than the array (because iteration is a bit more complicated).




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

Search: