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

Sadly "map" is also the name of the critical "map" function which operates on lists. Maybe with an indefinite article ("a map") it's clear enough.


Sure, so go the Lua route: table. Or the python route: dictionary. If neither of those do it for you, how about "mapping"?

Hash (and hash map, hash table etc) leak too much implementation detail. What if you want a tree-based mapping instead? I like how in C++ it's map (for ordered, rb-tree based maps) and unordered_map (for unordered, hash table based maps).


I'm going to try out "mapping" -- good suggestion.




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

Search: