19101, "bradcray", "Could compiler-generated methods like readThis, writeThis, hash be implemented in module code?", "2022-01-25T19:43:03Z"
Today, if the user has not provided certain methods on their types—for example, readThis, writeThis, and hash—the compiler will provide defaults for them in most or all cases (see Should the compiler always generate hash functions for records? · Issue #18577 · chapel-lang/chapel · GitHub for some discussion on "most" cases for hash()). In this issue, I'm curious whether the language and Reflection module is currently sufficiently powerful enough to implement these methods as module code rather than in the compiler. This is something I was curious about yesterday and that Andrew also touched upon today in a comment.