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

the problem with overloading add is that add results in more than merge. merge is add minus the duplicate keys. students shouldn't learn wrong semantics.

{1:,2:} + {1:,3:} = {1:,2:,3:}



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

Search: