3 ms·
The author's premise is that the strict typing and validation of a configuration file belong with the application, not some library doing initial validation of
by mjevans 3y ago
The author's premise is that the strict typing and validation of a configuration file belong with the application, not some library doing initial validation of a document which may or may not conform to the application's logic.
- gavinhoward 3y agoBut even then, the logic depends on the contents of the string. If you need a country (as a string) and you get a number, you know something is wrong. If you need a country code and you get a Boolean, chances are you got Norway, but by having strict typing, you don't run into that ambiguity.