[erlang-questions] Generating a variable in a macro
Tue Jan 9 17:54:43 CET 2007
On 9 Jan 2007, at 16:40, Ladislav Lenart wrote:
> Just take a look at today's discussion threads:
> * Generating a variable in a macro - the core of the
> problem is that record_info is not a normal function.
> * Accessing default values of a record - not having
> this functionality can introduce code duplication.
And potentially quite a lot of code duplication. In a system with
hundreds of mnesia tables it means that all those hundreds of table
record definition must be backed up by a function that provides the
same information but accessible at runtime just in case some table
should be upgraded. Likelihood of everything always being correct?
Close to zero :-(
More information about the erlang-questions