doc icon indicating copy to clipboard operation
doc copied to clipboard

Improve Hash Object Docs

Open librasteve opened this issue 2 years ago • 0 comments

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 avatar Dec 22 '23 11:12 librasteve