[erlang-questions] {1} > 100 returns true ?!

Francesco Cesarini (Erlang Training and Consulting) francesco@REDACTED
Sun May 17 21:40:32 CEST 2009


Hi Steve,

This has to do with the lexicographical order of Erlang types.

number < atom < reference < fun < port < pid < tuple < list < bit string

Francesco


Steve Kirsch wrote:
> i must admit I am a bit baffled by why this isn't an error:
>
> 4> {1,3} > 100.
> true
> 5> {1} >100.
> true
> 6>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>   



More information about the erlang-questions mailing list