On Tue, Jan 25, 2011 at 5:31 PM, Benoit Chesneau <[email protected]> wrote: > > Is there any reason you are using named table here ? Why not just use > ets ids ? Also why using macros ? >
Yes. Not using the IDs returned by ets:new/2 because that means saving them in the state and having to pass them to every helper function. Like this, it makes the code shorter by not passing so many parameters to each function. Macros are used because: if you need to change the value (ets table name), you'll only do it in one place. -- Filipe David Manana, [email protected], [email protected] "Reasonable men adapt themselves to the world. Unreasonable men adapt the world to themselves. That's why all progress depends on unreasonable men."
