Strange behaviour with a record in a guard

Shawn Pearce <>
Mon Mar 3 10:42:59 CET 2003

Bengt Kleberg <> wrote:
> foo( #r{f1=F1} = R ) when F1 == undefined ->
> 	ok.

How is that better/different from:

foo( R = #r{f1=F1} ) when F1 == undefined ->

as I'm currently using the latter form in my code
successfully.  Just wondering if I need to go back
and update it for any reason.


  Don't go surfing in South Dakota for a while.

More information about the erlang-questions mailing list