[erlang-questions] Newbie question about Erlang style

Convey Christian J NPRI ConveyCJ@REDACTED
Wed Feb 27 21:04:11 CET 2008


Is there any non-aesthetic reason prefer one of the following approaches over the other?


if Foo  -> X = 1;
   true -> X = 2
end

vs.

X = if
   Foo  -> 1;
   true -> 2
   end

Thanks,
Christian

Christian Convey
Scientist, Naval Undersea Warfare Centers
Newport, RI




More information about the erlang-questions mailing list