I am learning Erlang from the LearnYouSomeErlang web-book. One thing that struck me while learning was the non short-circuiting boolean conjunction and disjunction operators viz; and and or. What are the use cases for these operators? Why would you want to use them instead of andalso and orelse?
I am learning Erlang from the LearnYouSomeErlang web-book. One thing that struck me while
Share
It used to be (until R13A) that
andalsoandorelseweren’t tail recursive. See http://www.erlang.org/eeps/eep-0017.html for details. I don’t think there is a good reason to useand/orin new programs.