4 ms·
> If your config is so complicated that it warrants a full-blown language, the logic should go into the main program that reads the config Exactly. Even the s
by pdonis 7y ago
> If your config is so complicated that it warrants a full-blown language, the logic should go into the main program that reads the config
Exactly. Even the simple toy example in the article illustrates the problem: why is the Person class being defined in the config? If the program is going to use objects representing people, the code defining the structure of those objects should go in the program. If the program is not going to use objects representing people, why are you adding extra code to your config to define Person objects when you could just use a list of plain tuples?