【发布时间】:2017-10-18 00:27:50
【问题描述】:
所以查看file 中的源代码,我看到了一个像pid <- {:message, message, m} 这样的向后箭头。那是有效的 Elixir 语法吗?现在,当我将 RingOne 模块粘贴到 iex shell 中时,让其正常运行的有效语法是什么?
【问题讨论】:
标签: elixir
所以查看file 中的源代码,我看到了一个像pid <- {:message, message, m} 这样的向后箭头。那是有效的 Elixir 语法吗?现在,当我将 RingOne 模块粘贴到 iex shell 中时,让其正常运行的有效语法是什么?
【问题讨论】:
标签: elixir
是的,! 运算符已被弃用,取而代之的是 send/2 in 2014 和 removed a few days later。解决起来很简单:只需将所有 a <- b 表达式更改为 send(a, b)。
【讨论】: