[erlang-questions] Missing binary BIFs

Loïc Hoguin essen@REDACTED
Wed Feb 8 19:29:33 CET 2012


Hello,

It feels a bit tedious to keep doing things like
   list_to_binary(integer_to_list(42))

or even
   list_to_binary(atom_to_list(forty_two))

when we could have convenient integer_to_binary/1 or /2 or 
atom_to_list/1 BIFs.

Is there any chance to add them in a future release? With all the 
advantages of binaries it's a shame it's not easier to deal with them.

Thanks.

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines



More information about the erlang-questions mailing list