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 collections Data structures holding multiple items, e.g. sets label Oct 16, 2017
@StefanKarpinski
Copy link
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 andyferris force-pushed the ajf/immutable-envhash branch from c6f7ed0 to d543862 Compare October 21, 2017 04:18
@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 force-pushed the ajf/immutable-envhash branch from d543862 to 4479185 Compare October 21, 2017 04:23
@andyferris andyferris force-pushed the ajf/immutable-envhash branch from 4479185 to f9217a7 Compare October 21, 2017 04:24
@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
collections Data structures holding multiple items, e.g. sets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants