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

Why not using singleton pattern? #578

Open
essentique opened this issue Aug 5, 2022 · 1 comment
Open

Why not using singleton pattern? #578

essentique opened this issue Aug 5, 2022 · 1 comment

Comments

@essentique
Copy link

I just picked up the code to use it for my plugin. I have this urge to turn some of the core classes to singletons. Before doing so, was wondering why it's not like that already.

Any specific reason?

@DevinVinson
Copy link
Owner

You totally could @essentique . It can cause some hurdles when building out tests but it has been a while since I've been in the weeds to get into the specifics. Give it a try and go from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants