【发布时间】:2023-03-24 02:08:01
【问题描述】:
有人可以帮忙解释为什么我们得到参数错误吗?我们不应该以这种方式检查真实性吗?在 Elixir 1.3 上
iex(1)> true and true
true
iex(2)> "true"
"true"
iex(3)> true
true
iex(4)> true and "true"
"true"
iex(5)> "true" and true
** (ArgumentError) argument error: "true"
【问题讨论】:
标签: elixir