Prop lists vs. dictionaries
Richard Carlsson
richardc@REDACTED
Mon Apr 18 12:15:56 CEST 2005
joel reymont wrote:
> Is there any particular reason to use prop lists over dictionaries?
Certainly not for efficiency. Proplists are handy for passing
options to a function, using defaults, overriding, combining, etc.
If you pass a proplist to control the behaviour of some heavy
computation, I recommend that you internally pick out the values
from the proplist and put them in a record or dictionary for
quick access before you enter the main loop.
/Richard
More information about the erlang-questions
mailing list