You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is to avoid the semantic difference between Keyword.get(opts, :foo, :bar) and opts[:foo] || :bar. The latter is preferable because often we don't care about making a distinction between the absence of a value and that value being set to nil.
It is also debatable if we should deprecate similar functions from Enum.
The text was updated successfully, but these errors were encountered:
@whatyouhide I am not sure on pop yet. It theoretically suffers from the same issue but it cannot be expressed as concisely as get. Let's wait for more feedback before we start working on any of those changes. :)
The reason is to avoid the semantic difference between
Keyword.get(opts, :foo, :bar)
andopts[:foo] || :bar
. The latter is preferable because often we don't care about making a distinction between the absence of a value and that value being set to nil.It is also debatable if we should deprecate similar functions from Enum.
The text was updated successfully, but these errors were encountered: