[erlang-questions] obsolete messages

Ivan Uemlianin ivan@REDACTED
Tue Jun 1 22:36:24 CEST 2010


I think the new guards are is_atom/1 and is_list/1

Best

Ivan

On 01/06/2010 21:31, Wes James wrote:
> 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
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
>
>    


-- 
============================================================
Ivan A. Uemlianin
Speech Technology Research and Development

                     ivan@REDACTED
                      www.llaisdy.com
                          llaisdy.wordpress.com
                      www.linkedin.com/in/ivanuemlianin

     "Froh, froh! Wie seine Sonnen, seine Sonnen fliegen"
                      (Schiller, Beethoven)
============================================================



More information about the erlang-questions mailing list