erlang io:format, and a hanging web application
Posted
by williamstw
on Stack Overflow
See other posts from Stack Overflow
or by williamstw
Published on 2010-03-26T12:42:52Z
Indexed on
2010/03/26
13:23 UTC
Read the original article
Hit count: 246
erlang
While I'm learning a new language, I'll typically put lots of silly println's to see what values are where at specific times. It usually suffices because the languages typically have available a tostring equivalent. In trying that same approach with erlang, my webapp just "hangs" when there's a value attempted to be printed that's not a list. This happens when variable being printed is a tuple instead of a list. There's no error, exception, nothing... just doesn't respond. Now, I'm muddling through by being careful about what I'm writing out and as I learn more, things are getting better. But I wonder, is there a way to more reliably to [blindly] print a value to stdout?
Thanks,
--tim
© Stack Overflow or respective owner