Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove "hash brownies" example and explanation #76
Conversation
|
Resolve conflicts? |
|
I'll leave it up to @satwikkansal, whose 7b22f84 (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 185d60c, I think it can be closed now. |
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!