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

-- 
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/5fe169ce.1c69fb81.ad7e5.8156SMTPIN_ADDED_MISSING%40gmr-mx.google.com.

Reply via email to