erlexec icon indicating copy to clipboard operation
erlexec copied to clipboard

Refactor: collect possible keys of Document `_metadata` and store globally

Open JohannesMessner opened this issue 2 years ago • 0 comments

In many places (such as, e.g., here), we use string keys to access information in a Document's _metadata.

This is not very clean and prone to bugs/typos/etc. We should collect these keys and store them as a global constant, or similar.

This might potentially also affect other structures that we maintain, not only _metadata.

JohannesMessner avatar Jul 25 '22 12:07 JohannesMessner