Matching elements of records

Javier París Fernández paris@REDACTED
Tue Nov 2 09:29:02 CET 2004


On Tue, Nov 02, 2004 at 03:22:19PM +1300, Richard A. O'Keefe wrote:
> Bjorn Gustavsson <bjorn@REDACTED> wrote:
> 	Why would you want a matching in head look like it was an assignment
> 	        X = [Y|Ys]
> 	in a body?
> Because it *IS* an assignment in a head, of course.
> In both cases, the topic, the thing being introduced,
> the thing you push onto your personal working memory because you
> think you will need it again, is the variable that is being bound.

Just curious, but what is in your opinion the difference between
assignment and matching in a functional language? I see none.


More information about the erlang-questions mailing list