Awesome! PR has been opened https://github.com/elixir-lang/elixir/pull/6325
— Parker


On Thu, Jul 13, 2017, at 09:56 AM, José Valim wrote:
> Sounds good to me, since it can be considerably cheaper than the options we 
> have today.> 
> 
> 
> 
> *José Valim*
> 
> www.plataformatec.com.br[1]
> Skype: jv.ptec
> Founder and Director of R&D
> 
> 
> 
> On Thu, Jul 13, 2017 at 4:45 PM, Parker Selbert <parker.selb...@gmail.com> 
> wrote:>> Recently I discovered an application bug that stemmed from the use 
> of MapSet.subset?/2. The code was attempting to check whether there was any 
> overlap between two sets, but the use of subset?/2 is order dependent. The 
> solution was to use MapSet.disjoint?/2 and check if the result was false, but 
> that was not obvious and feels backwards.>> 
>> I'm proposing the addition of MapSet.intersect?/2, which will check whether 
>> two sets have any members in common. For larger sets the best case 
>> performance would be better than "not disjoint", and it would be a more 
>> obvious solution.>> 
>> Thoughts?
>> 
>> — Parker
>> 
>> 


>> --
>>  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 elixir-lang-core+unsubscr...@googlegroups.com.
>>  To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elixir-lang-core/15f6857f-6f2e-49fe-ad2b-b214b2b12e98%40googlegroups.com[2].
>>  For more options, visit https://groups.google.com/d/optout.> 
> 


> --
>  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 
> elixir-lang-core+unsubscr...@googlegroups.com.>  To view this discussion on 
> the web visit 
> https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BYJyMXkKcLQPScqVgrpUH2UNTTLV%3DP1yAVNfEj%2BpVj4w%40mail.gmail.com[3].>
>   For more options, visit https://groups.google.com/d/optout.


Links:

  1. http://www.plataformatec.com.br/
  2. 
https://groups.google.com/d/msgid/elixir-lang-core/15f6857f-6f2e-49fe-ad2b-b214b2b12e98%40googlegroups.com?utm_medium=email&utm_source=footer
  3. 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BYJyMXkKcLQPScqVgrpUH2UNTTLV%3DP1yAVNfEj%2BpVj4w%40mail.gmail.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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/1499963095.3893887.1039931208.2D30B68E%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to