Construct for associative arrays

wboeke@REDACTED wboeke@REDACTED
Mon Feb 8 17:31:36 CET 1999


--------------------------------------------------------------------
From: W.Boeke, Lucent Technologies, boeke@REDACTED
To  : Erlang discussion group, erlang-questions@REDACTED
Date: febr 8, 1999
--------------------------------------------------------------------

Hi,

Suppose I have a record:

  -record(aap,{ johnnie }).

a function:

  name() -> johnnie.

and a variable assignment:

  Var = #aap{ johnnie=mad },

Now my question is: would it be TERRIBLE difficult to implement Erlang such
that I could address a record member as follows:

  Var#aap.name()

This way, working with associative arrays would become very simple. And these
data structures are quite useful, once you are accustomed to them.


Kind regards,
Wouter Boeke



More information about the erlang-questions mailing list