I've found myself and seen others expecting to receive the default value from `Map.get/3` when the value is `nil`.
An example is:
`Map.get(%{name: nil}, :name, "John")`
Expected it to return "John" but it returns `nil`
My thinking is since the default value is for the key then when the key value is `nil` we should be able to get the default value.
The change in code could be as below:
```
def get(map, key, default \\ nil) do
case map do
%{^key => value} when is_nil(value) ->
default
%{^key => value} ->
value
%{} ->
default
other ->
:erlang.error({:badmap, other}, [map, key, default])
end
end
```