I'm strongly in favor of the proposal, it is an ideal use of protocols
(and we aren't facing a non-BIF penalty).
— Parker

On Fri, Jun 16, 2017, at 03:51 PM, OvermindDL1 wrote:
> Sounds like precisely what is needed.  I'm all for it!
> 
> 
> On Friday, June 16, 2017 at 2:16:59 PM UTC-6, Wiebe-Marten
> Wijnja wrote:>> Going back to the core of this issue, I'd like for there to 
> be a
>> simple function `compare` with an accompanied Protocol, which ensures
>> that the comparison return values are standardized. This would
>> significantly improve compatibility of libraries. I think this is a
>> standardization that we should embrace quickly, before the APIs of
>> the publicly available libraries dift further apart and become near-
>> impossible to reunite in a backwards-compatible fashion.>> 
>> I'd like to hear who is in favour and who is against of this very
>> concrete proposal.>> 
>> 
>> On Friday, June 9, 2017 at 2:37:39 PM UTC+2, Michał Muskała wrote:
>>> On 9 Jun 2017, 14:28 +0200, Wiebe-Marten Wijnja <w.m.w...@panache-
>>> it.com>, wrote:>>> 
>>>> 
>>>> We could change `Enum.sort` to use `&Kernel.lte?/2` by default,
>>>> rather than `&<=/2`. Although this might have slight efficiency
>>>> implications for existing applications, I think it would uphold the
>>>> Principle of Least Surprise better.>>>>  
>>> 
>>> This would have huge performance implications. Enum.sort/1 and
>>> Enum.sort/2 have completely different implementations. Enum.sort/2
>>> is about 2.5 times slower (when provided with &<=/2 as comparator).>>> 
>>> Michał.
> 


> --
>  You received this message because you are subscribed to the Google
>  Groups "elixir-lang-core" group.>  To unsubscribe from this group and stop 
> receiving emails from it,
>  send an email to [email protected].>  To view 
> this discussion on the web visit
>  
> https://groups.google.com/d/msgid/elixir-lang-core/a74bb762-546f-4856-8029-58fe48b30b30%40googlegroups.com[1].>
>   For more options, visit https://groups.google.com/d/optout.


Links:

  1. 
https://groups.google.com/d/msgid/elixir-lang-core/a74bb762-546f-4856-8029-58fe48b30b30%40googlegroups.com?utm_medium=email&utm_source=footer

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/1497647105.2471223.1012054664.5CA5113B%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to