You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Semantically, .all() should not be a method of the CountryInfo object, since that one represents the information for a specific country.
Instead, it should probably be a global function. While we're at it, I'd also say it should return a list of CountryInfo objects. If a user wants to access a specific one, they can create a CountryInfo object, so fast access isn't a big issue, and it would hide the json structure from library users.
Implementation-wise, this would be easier after #40
The text was updated successfully, but these errors were encountered:
Semantically,
.all()
should not be a method of the CountryInfo object, since that one represents the information for a specific country.Instead, it should probably be a global function. While we're at it, I'd also say it should return a list of CountryInfo objects. If a user wants to access a specific one, they can create a CountryInfo object, so fast access isn't a big issue, and it would hide the json structure from library users.
Implementation-wise, this would be easier after #40
The text was updated successfully, but these errors were encountered: