José found a tricky-to-resolve inconsistency and we ended up not adding a
default parameter after all:
https://github.com/elixir-lang/elixir/pull/10158

I have now started looking at Access.at!.

Should we also add Enum.at! for consistency? Looks straightforward. (Enum.at
source:
https://github.com/elixir-lang/elixir/blob/c192083726b5880ef3ed0b20ba01c124b73f3efe/lib/elixir/lib/enum.ex#L399-L405
)

As for Access.at!, I think I'll either implement it similarly to the
default parameter, passing some "should it return nil or should it explode"
value to the private functions – or I'll just duplicate the code, since
there's not much of it.

On Mon, Jul 6, 2020 at 4:54 PM José Valim <[email protected]> wrote:

> Correct. FunctionClauseError is expected here.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "elixir-lang-core" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elixir-lang-core/2bq8SlGVSZs/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LpfTUi_oB9NMcpDk12k_SW4OnnHpHc3RL2jmCqWcMJ6Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4LpfTUi_oB9NMcpDk12k_SW4OnnHpHc3RL2jmCqWcMJ6Q%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAL%2B%3DsuMzhK0G8y%3DZDmPgiUJyqGJDBHZJLOUw5GBwSSYg4%3D8Drg%40mail.gmail.com.

Reply via email to