Hopefully not a stupid question, however is the act of parsing a config file and making the contents available to a program a simple example of the Interpreter pattern?
All of the examples I find seem to imply that the Interpreter pattern is for more complicated situations (such as a interpreting a formal language with a complex grammar) but there doesn't seem to be any reason why it couldn't cover much more simpler cases as well.
Aucun commentaire:
Enregistrer un commentaire