[erlang-questions] Element Typing in Record Declarations?

Andrew Thompson <>
Tue Feb 24 21:44:11 CET 2009


On Tue, Feb 24, 2009 at 11:07:35AM -0800, Michael Radford wrote:
> You can exploit the fact that record default values seem to be evaluated
> like macros (which I personally just discovered):
> 

I knew you could use things like now() in a record definition, but this
is even cooler. I'm busy breaking all my tests by using your trick in my
record defintions right now.

Andrew



More information about the erlang-questions mailing list