Say I have some data which I want several kinds of. I think the easiest example could be tiles in a game: I would have grass, rock, tree, etc. each with different sets of values.
I would immediately go ahead and make a file and read it in at runtime, so I wouldn't have to recompile it all for a tweak with something like C++. But if I was using Python, or some other intepreted language, would there be much point in having to make the file in a format like:
kind grass
colour 0xdfdfdf
walk true
see true
Rather than:
class grass(tile):
def init(self):
I can't remember how to init. parents
self.colour = 0xdfdfdf
The obvious benefit of the first is lost, when you don't compile.