Ah, I mistakenly believed that ExUnit already highlighted failing pattern 
matches, hence my confusion. Thanks for the explanation.

On Wednesday, February 1, 2017 at 2:20:41 PM UTC+1, José Valim wrote:
>
>  
>
>> Just wondering, is this necessary because it's impossible to list the 
>> function clauses or because there's no straightforward way to turn a 
>> function clause into one hand of a pattern match?
>>
>
> It is necessary if we want to do things such as "diffing". For example, if 
> we can't match a clause because a map is missing a field, we should tell 
> the field that is missing when we implement such feature. This "diffing" or 
> "explaining" requires reimplementing pattern matching.
>
>

-- 
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/20392fb1-68eb-4183-84af-8464a1fb781b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to