On Mon, 21 Dec 2020 22:37:53 -0500
eksperimental <eksperimen...@autistici.org> wrote:

> Hi list,
> I would like to propose to convert two existing functions to guards in
> the MapSet module.
> 
> 1. Is MapSet.size/1. I found myself not being able to use this
> function in guards, and having to port my code, unless I want to get
> into the bad habit of reading the internal structure of the struct
> which is an opaque type.
> This guard can be implemented with :erlang.map_get/2
> 
> 2. Deprecate MapSet.member?/2 in favor of MapSet.is_member/2
> 
> Thank you for reading
> 

Actually, why are we having MapSet.member?/2 when we have
Enum.member?/2. It is redudant.

-- 
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/5fe40f76.1c69fb81.f8161.5ba3SMTPIN_ADDED_MISSING%40gmr-mx.google.com.

Reply via email to