Matching elements of records

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Tue Nov 2 10:11:46 CET 2004


From: "Javier París Fernández" <paris@REDACTED>
> Just curious, but what is in your opinion the difference between
> assignment and matching in a functional language? I see none.

In my view, assignment X = [Y, Z] is creating a new entity from several existing
ones.
Matching [Y, Z] = X splits an existing entity into its components.

regards,
/Vlad



More information about the erlang-questions mailing list