[erlang-questions] Maps branch and disclaimers

OvermindDL1 overminddl1@REDACTED
Tue Oct 29 19:15:38 CET 2013


+1 for -1, 0, and 1, math simplifies then in cases
On Oct 29, 2013 10:39 AM, "José Valim" <jose.valim@REDACTED>
wrote:

>
> "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*
> www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Lead Developer
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131029/77b607d2/attachment.htm>


More information about the erlang-questions mailing list