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

Stronger typo-guarding through metatable errors #312

Open
autonordev opened this issue Sep 22, 2023 · 0 comments
Open

Stronger typo-guarding through metatable errors #312

autonordev opened this issue Sep 22, 2023 · 0 comments
Assignees

Comments

@autonordev
Copy link
Collaborator

autonordev commented Sep 22, 2023

As much as possible, but especially for our main singletons (Cmdr, CmdrClient, Registry, etc) we should use metatables to guard against typos. In other words, we should ensure that we're raising errors whenever developers try to access something that doesn't exist from Cmdr. This will help developers to spot errors immediately and clearly, reducing support requests. I have a mental image of how this should work so I'll try add this when I get a minute.

@autonordev autonordev self-assigned this Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant