I'm with Greg in that I think building a hash table is horribly
overengineered. Exception handling doesn't have to be fast, and the
table approach doesn't have to be subject to ordering dependencies.
On the other hand, generating the table and the enumeration using cpp
macros is awful. Let's not confuse generations of future programmers
just for the sake of not having to write error codes in two different
places. Likewise, let's not auto-generate the enumeration and the
table using python; have you ever tried to debug into autogenerated
code when you didn't have a build tree lying around?
(Incidentally, I do not think autogenerating the table dovetails
nicely into localization. When we do localization, we will not have
an executable for each locale; we will have one executable which
honors an environment variable. Some kind of runtime lookup into a
file will be necessary, or a massive table which contains the error
strings for all languages.)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:31 2006