Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rurban
on March 8, 2019
|
parent
|
context
|
favorite
| on:
PEP 584 – Add + and – operators to the built-in di...
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:
{1:,2:} + {1:,3:} = {1:,2:,3:}