Can I disable printing lists of small integers as strings in Erlang shell?

前端 未结 7 1040

The Erlang shell \"guesses\" whether a given list is a printable string and prints it that way for convenience. Can this \"convenience\" be disabled?

7条回答
  •  悲&欢浪女
    2020-11-27 21:29

    You can disable such behavior with shell:strings/1 function starting with Erlang R16B.

    Just remember that this is option global to all node shells, and it might be wise to set it back after finishing playing is shell in longer living nodes.

提交回复
热议问题