[erlang-questions] learning Erlang: factoring primes
Bjorn Gustavsson
bjorn@REDACTED
Mon May 7 11:29:43 CEST 2007
ok <ok@REDACTED> writes:
> In fact I just made this "mistake" in the improved factorising code I
> posted. My excuse is that Erlang, which came *after* Prolog and which
> uses Prolog-based syntax, gets =:= and == completely back-to-front from
> the way Prolog has them. In Prolog, == means "exact identity" and
> =:= means "numerically equal after evaluation". I cannot imagine why
> Erlang swapped them. I keep on tripping up over this.
I think that the reason is that floats was not originally in the Erlang
language, but was added later.
/Björn
--
Björn Gustavsson, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list