iso3166 icon indicating copy to clipboard operation
iso3166 copied to clipboard

shouldn't the main API be static?

Open MeerKatDev opened this issue 3 years ago • 1 comments

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.

MeerKatDev avatar Oct 19 '21 22:10 MeerKatDev

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.

alcohol avatar Oct 20 '21 06:10 alcohol