News for hackers. Stuff that matters.
Re:Why Operators Are Useful by wool_gather on Saturday March 16, 2019 @11:56AM (#19408409)
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.
Re:Why Operators Are Useful by pacala on Saturday March 16, 2019 @12:48PM (#19408721)
It’s an operator, there are no optional arguments. Though it’s OK to also have a function like you propose.
Re:Why Operators Are Useful by gpderetta on Saturday March 16, 2019 @05:37PM (#19410437)
Recursively calling the operator is an option.