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

EnvHash should be immutable and be called EnvDict #24167

Merged
merged 2 commits into from
Oct 22, 2017

Conversation

andyferris
Copy link
Member

This is a bit of a relic, and was never really updated to be a standard immutable singleton. I doubt there is a lot of practical difference, but hey.

FYI this type so old, it is now the second time it is called a struct. :)

(If we really want to modernize this thing before v1.0, maybe "Hash" is a poor term - "Dict" and "Associative" seem more relevant. EnvDict?)

@ararslan ararslan added the domain:collections Data structures holding multiple items, e.g. sets label Oct 16, 2017
@StefanKarpinski
Copy link
Sponsor Member

Yes, renaming EnvHash to EnvDict is a good idea. It predates the Dict type, which is why it's EnvHash (also Dict was originally HashTable).

This is a bit of a relic, and was never really updated to be a standard immutable singleton. I doubt there is a lot of practical difference, but hey.

FYI this type so old, it is now the *second* time it is called a `struct`. :)
@andyferris
Copy link
Member Author

I used find-and-replace to change to EnvDict. I'll let CI vet this, and merge when done.

@andyferris andyferris changed the title EnvHash should be immutable EnvHash should be immutable and be called EnvDict Oct 21, 2017
@andyferris andyferris merged commit 2a9a35a into master Oct 22, 2017
@fredrikekre fredrikekre deleted the ajf/immutable-envhash branch October 22, 2017 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:collections Data structures holding multiple items, e.g. sets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants