Quote:
Originally Posted by Pete Mack
By and large, separation of code and data is very much a usual design goal.
|
I would say rather, you want separation of
logic and data. That is, there's the data, which is in one place, and then there's the stuff that operates on that data, which is elsewhere. But they can both be "code" (i.e. compiled into the same binary). This can be tempting especially when you're in a language as archaic as, what, C89? Which lacks many tools that make parsing data files easier.
In general I feel that devolving more attributes to the data files is a good thing, but I'm definitely sensitive to the fact that we don't want to be making a DSL (domain-specific language) just for Angband data.