可以禁用Erlang shell中的小整数打印列表作为字符串吗? [英] Can I disable printing lists of small integers as strings in Erlang shell?

查看:108
本文介绍了可以禁用Erlang shell中的小整数打印列表作为字符串吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Erlang shell猜测一个给定的列表是否是可打印的字符串,并打印出方式是否可以禁用这个便利?

您可以使用 shell:strings / 1 函数从Erlang R16B。



请记住,这是所有节点shell的全局选项,并且在更长的生活节点中完成播放之后将其设置回来也许是明智的。 / p>

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

解决方案

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.

这篇关于可以禁用Erlang shell中的小整数打印列表作为字符串吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆