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

shouldn't the main API be static? #66

Open
MeerKatDev opened this issue Oct 19, 2021 · 1 comment
Open

shouldn't the main API be static? #66

MeerKatDev opened this issue Oct 19, 2021 · 1 comment

Comments

@MeerKatDev
Copy link

In most use cases the call is used once, why isn't the library making static calls? Like ISO3166::alpha2(..).
Creating an object every time seems quite cumbersome.

@alcohol
Copy link
Member

alcohol commented Oct 20, 2021

With DI being so mainstream, injecting the same instance everywhere hardly seems cumbersome to me. But to be fair, there is no real argument against making everything static.

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