wtfpython
wtfpython copied to clipboard
Improve "hash brownies" example and explanation
I found the current "hash brownies" example and explanation confusing, so I'm proposing these changes.
This is clearer because it focuses on equivalence as the key principle first, without muddying the waters with hashing and immutability up front.
Once this does mention hashing, it explains it in the context of being a performance optimization (which is all it is), not as something that is central to what containment in a dict actually means.
Hope this helps!
Resolve conflicts?
I'll leave it up to @satwikkansal, whose 7b22f84f97723b5b8b49435a5810c37bcbbbd582 (in response to my #77) landed before this did with overlapping intent.
Sorry, totally forgot about this PR. Addressed this PR in the recent commit https://github.com/satwikkansal/wtfpython/commit/185d60c1b696e2029f7e6d641afe272ca466feec, I think it can be closed now.
I think it can be closed now.
In such case I would recommend closing it.