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

Improve Hash Object Docs #4408

Open
librasteve opened this issue Dec 22, 2023 · 0 comments
Open

Improve Hash Object Docs #4408

librasteve opened this issue Dec 22, 2023 · 0 comments
Labels
docs Documentation issue (primary issue type)

Comments

@librasteve
Copy link
Contributor

Problem or new feature

Currently, there is no link in the docs from the "Non-string keys / Object hash" section:
https://docs.raku.org/language/hashmap#Non-string_keys_(object_hash)

to/from the class ValueObjAt section:
https://docs.raku.org/type/ValueObjAt

Suggestions

This proposal is to cross link these sections so that there is advice on the best way to make a custom class with the intent to use that class objects as hash keys, in sympathy with this statement...
So, the correct way of using a class as a key would be to set all attributes to be immutable, and override WHICH to return a ValueObjAt: https://docs.raku.org/type/ValueObjAt

@librasteve librasteve added the docs Documentation issue (primary issue type) label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation issue (primary issue type)
Projects
None yet
Development

No branches or pull requests

1 participant