Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

rename x:struct to x:dict or x:hash? #1

Closed
mbutterick opened this issue Mar 15, 2019 · 3 comments
Closed

rename x:struct to x:dict or x:hash? #1

mbutterick opened this issue Mar 15, 2019 · 3 comments

Comments

@mbutterick
Copy link
Owner

No description provided.

@mbutterick
Copy link
Owner Author

No. struct is the right analogy. It implies a set of fields identified by their order (and the names are just convenient). dict and hash necessarily imply a set of unordered key–value pairs.

@mbutterick
Copy link
Owner Author

But: the input that gets encoded is a hash, and the output as decoded is a hash. So as far as a client of the library is concerned, it converts hashes (the details of the binarization, and the way values are matched to keys, is irrelevant housekeeping)

@mbutterick
Copy link
Owner Author

Done deal: d597a65

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant