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

Yup. I always use Set and Map over objects. They just contain way fewer surprises and the APIs actually work as you would expect. I only use Objects for "struct" like objects with a known set of keys that are used by name. It is also nice because it conveys more intent to the reader.


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

Search: