Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add factory dictionary as requested in #43 #47

Merged
merged 1 commit into from
Sep 10, 2016

Conversation

michaelneu
Copy link
Contributor

This PR implements a FactoryDictionary as requested in #43. The FactoryDictionary is implemented by extending the default Dictionary and adding the default value functionality similar to Pythons defaultdict.

Why _Factory_Dictionary rather than _Default_Dictionary?
IMO "Default" feels more like the one you should always use over the other ones, whereas Factory better describes the dictionary's behaviour

@episage
Copy link
Collaborator

episage commented Sep 10, 2016

Hi @michaelneu

Thank's a lot for your contribution. I will merge your FactoryDictionary in a while. I will also add export for DefaultDictionary for people familiar with Python.

@episage episage merged commit 904a8a6 into basarat:release Sep 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants