iso3166
iso3166 copied to clipboard
shouldn't the main API be static?
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.
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.