From: Brian Candler Date: 2009-04-30T16:28:00+09:00 Subject: Re: Ruby Interface of Erlang KDr2 wrote: > Thank you, I just hava done little update : > http://github.com/KDr2/erlix/tree/master#fn1 Interesting. However I think it would be better to turn a ruby string into an erlang list, rather than an atom, for two reasons: (1) It more closely matches what happens in Erlang 1> Foo = "abc". "abc" 2> hd(Foo). 97 (2) I'm not an Erlang expert, but I think I read that Erlang has the same atom-exhaustion problem that Ruby has with symbols: namely that once an atom has been allocated it cannot be freed. So it is not a good idea to keep calling list_to_atom on random strings provided by untrusted users. I'd still expect Ruby symbols to be mapped to atoms, of course. Regards, Brian. -- Posted via http://www.ruby-forum.com/.