Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wool_gather
on March 16, 2019
|
parent
|
context
|
favorite
| on:
Why Operators Are Useful
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.
pacala
on March 16, 2019
[–]
It’s an operator, there are no optional arguments. Though it’s OK to also have a function like you propose.
gpderetta
on March 16, 2019
|
parent
[–]
Recursively calling the operator is an option.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: