On Tue, Jan 25, 2011 at 6:41 PM, Filipe David Manana <[email protected]> wrote: > 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. > > well using macros for that is a little overkill imo :) Or rather if you use named tables that because you don't want to get the table by their identifiers. Dunno.
- benoƮt
