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

The even more sensible thing is to take an optional argument: a function that is passed the conflicting keys and their values, and must resolve the conflict. If `None` is passed, then a documented default is taken.


It’s an operator, there are no optional arguments. Though it’s OK to also have a function like you propose.


Recursively calling the operator is an option.




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

Search: