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

Meant to respond to top level parent who said:

> dicts would subclass sets

Was trying to make the case as to why treating dictionaries as a child of <generic collection> with an extend/merge operation using ‘+’ rather than a child of set with a union operation ‘|’ makes more sense (to me).

Changing the behaviour of a well defined operation like union seems bad - although my case is somewhat undermined by python’s overloading of ‘+’ to mean extend.



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

Search: