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

Dynamic memory allocation solves the problem of dynamic business requirements.

If you know your requirements up front, static memory initialisation is the way.

For instance, indexing a typed array with an enum is no different then an unordered map of string to int, IF you have all your business requirements up front





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

Search: