loading...

re: Python: Merging and Updating Dicts the New Way VIEW POST

FULL DISCUSSION
 

Not a lucky decision and design. The operator | is a union operation for sets, which is commutative operation.

Using for dicts breaks mathematics. It is as wrong as using + string concatenation.

 

I don't know what to say. It's opinionated.

 

No need to say anything 😁

I just wanted to point out why it might not be such a great idea.

code of conduct - report abuse