The country package provides a black box data type for country codes.
It also supports ISO 3166-1 and UN M.49 encoding and decoding, which
allows the region parser to conform correctly to BCP-47.
Benefits:
Non enumerated data type. Casing on Country is a fragile practice.
Support for UN M.49.
Full country code generation in Arbitrary instance with lower and
upper bounds.
The
country
package provides a black box data type for country codes. It also supportsISO 3166-1
andUN M.49
encoding and decoding, which allows the region parser to conform correctly toBCP-47
.Benefits:
Country
is a fragile practice.UN M.49
.Arbitrary
instance with lower and upper bounds.