While writing integration tests for liblumen_otp, I was having errors that and mapped to an unknown _erlang:&/2 and or mapped to an unknown _erlang:|/2. Checking that I didn't miss & or | in erlang, I tried to TAB completing them with erlang. in iex and couldn't find them while I can find the send alias !. Going further, I tried apply(:erlang, :&, [true, true]) and apply(:erlang, :|, [true, true]) and they both raised UndefinedFunctionError, while :and and :or work as expected. Did I miss something @hansihe?
Changelog
Bug Fixes
Map BinaryOp::Or to erlang:or/2 instead of erlang:|/2.
Map BinaryOp::And to erlang:and/2 instad of erlang:&/2.
While writing integration tests for
liblumen_otp
, I was having errors thatand
mapped to an unknown_erlang:&/2
andor
mapped to an unknown_erlang:|/2
. Checking that I didn't miss&
or|
inerlang
, I tried toTAB
completing them witherlang.
iniex
and couldn't find them while I can find thesend
alias!
. Going further, I triedapply(:erlang, :&, [true, true])
andapply(:erlang, :|, [true, true])
and they both raisedUndefinedFunctionError
, while:and
and:or
work as expected. Did I miss something @hansihe?Changelog
Bug Fixes
BinaryOp::Or
toerlang:or/2
instead oferlang:|/2
.BinaryOp::And
toerlang:and/2
instad oferlang:&/2
.