Quasar
Moderator

Posts: 2857
Registered: 08-00 |
Some of us would like to see a way to extend UDMF with the ability to provide information that does not perfectly adhere to its strict grammar, such as scripting.
We've had some discussion on IRC and on the ZDoom forums in the last couple of days about what the best solution would be. I personally favor a heredoc implementation, like we have in EE for EDF, because it allows the text to be inserted without any translation performed on it, and without the tools involved having to be aware that this translation needs to take place.
CodeImp prefers simply using the string literal mechanism that is in place, and requiring the input to be escaped. Since UDMF is not, after all, primarily designed to be readable, this is acceptable as far as that goes, but does have the problem of requiring the transformation step to be performed while writing and reading the string value. This solution would involve the addition of more character escape values to the standard (ex: \n and \t).
We want to keep this process as democratic as possible, so we are soliciting further opinions. As far as heredocs go, here is a good article on what they are and what they can be used for:
http://en.wikipedia.org/wiki/Heredoc
Let me stress that although I have a personal preference, it isn't going to get in the way of this process, and I'll be happy as long as we come up with a working solution that it technologically clean.
|