Would this match on an element in a range and on an equivalent range? ?a or 
?a..?z would both match with ?a..?z

The proposed code looks nice and I thought was simpler at first. Considering it 
further made me think of the situation above. I want the explicitness of the 
current behavior to reduce the ambiguity.

Amos King
CEO
Binary Noggin

> On Mar 13, 2021, at 06:26, Igor Silva <[email protected]> wrote:
> 
> Current behavior
> 
> case ?a do
>   x when x in ?a..?z -> # code
>   x when x in ?A..?Z -> # code
>   _ -> # code
> end
> 
> Desired behavior
> 
> case ?a do
>   ?a..?z -> # code
>   ?A..?Z -> # code
>   _ -> # code
> end
> 
> #GoiásouVilaNova
> -- 
> 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/61ea5a90-6e3b-49a0-ad58-377959dd6aabn%40googlegroups.com.

-- 
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/F40F773D-8636-4040-826A-D75EF9C35734%40binarynoggin.com.

Reply via email to