[erlang-questions] Maps branch and disclaimers

José Valim jose.valim@REDACTED
Tue Oct 29 17:39:16 CET 2013

> "Not me against".
> But I think that term_compare/2 should return the term comparison
> operators <:<, =:=, >:> (or the @... alternatives) while compare/2 should
> return the old comparison operators as this is what they test.

Another idea is to make them return -1, 0 and 1. Then you can use the
output of both term_compare/2 and compare/2 (or any other comparison
function) without checking for specific operators.

*José Valim*
Skype: jv.ptec
Founder and Lead Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131029/15b83907/attachment.htm>

More information about the erlang-questions mailing list