Matching elements of records

Peter-Henry Mander <>
Tue Nov 2 09:55:09 CET 2004


On Tue, 2 Nov 2004 09:29:02 +0100

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

There _IS_ none. There are only bound and unbound variables. How they
are written is pretty much up to you! (Or those who impose a coding
style)

However, I have been bitten when I _forgot_ that I already bound a
variable... which is a good argument for keeping functions short and
sweet.

Pete.

-- 
"The Tao of Programming
 flows far away 
 and returns 
 on the wind of morning."




More information about the erlang-questions mailing list