obsolete messages

Wes James comptekki@REDACTED
Tue Jun 1 22:31:35 CEST 2010


I have some code that I got from an example:

a2l(A) when atom(A) -> atom_to_list(A);
a2l(L) when list(L) -> L.

l2a(L) when list(L) -> list_to_atom(L);
l2a(A) when atom(A) -> A.

when compiled it says atom/1 and list/1 are obsolete. What are the
replacements for atom/1 and list/1 in the context above?

thx,

-wes


More information about the erlang-questions mailing list