Matching elements of records

Vlad Dumitrescu <>
Tue Nov 2 10:11:46 CET 2004


From: "Javier París Fernández" <>
> 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