[erlang-questions] Missing binary BIFs

Ignas Vyšniauskas baliulia@REDACTED
Wed Feb 8 19:34:23 CET 2012


Hi,

On 2012.02.08 18:29, Loïc Hoguin wrote:
> It feels a bit tedious to keep doing things like
>   list_to_binary(integer_to_list(42))

<<42>> /= <<"42">>, so this would be ambigous.

> or even
>   list_to_binary(atom_to_list(forty_two))
> 

Check out atom_to_binary/2.

Ignas



More information about the erlang-questions mailing list