That's good news. Once resolved, the & &1 |> ... capture syntax would make
a pretty good addition to Elixir. I know I would use it in my classes.

-bt

On Thu, Oct 27, 2022 at 4:31 PM José Valim <jose.va...@dashbit.co> wrote:

> We could resolve it, yes, and allow &capitalize/1 inside captures. I
> wouldn't oppose it.
>
> On Thu, Oct 27, 2022 at 9:56 PM Marc-André Lafortune <
> marc-an...@marc-andre.ca> wrote:
>
>>
>>
>> On Wednesday, 26 October 2022 at 13:53:01 UTC-4 José Valim wrote:
>>
>>> The other thing is that the original code can be written as this:
>>>
>>> & &1 |> downcase |> split("_") |> map(&capitalize/1) |> join
>>>
>>
>> I had the exact same reflection.
>>
>> BTW, this actually doesn't work, giving `nested captures are not
>> allowed.` error, but that's not directly related (and seems like it could
>> be resolved; second `&` isn't really a capture, right?).
>>
>> --
>> 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 elixir-lang-core+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elixir-lang-core/a021d58c-3ec8-43c3-9de3-8383f5e2e9a3n%40googlegroups.com
>> <https://groups.google.com/d/msgid/elixir-lang-core/a021d58c-3ec8-43c3-9de3-8383f5e2e9a3n%40googlegroups.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 elixir-lang-core+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JfPzs31TVUUZSU3KEcuuctyXSkpr8ZNuvGu4VNzSD6ew%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JfPzs31TVUUZSU3KEcuuctyXSkpr8ZNuvGu4VNzSD6ew%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 

Regards,
Bruce Tate
CEO

<https://bowtie.mailbutler.io/tracking/hit/f8218219-d2a8-4de4-9fef-1cdde6e723f6/c7c97460-016e-45fb-a4ab-0a70318c7b97>

Groxio, LLC.
512.799.9366
br...@grox.io
grox.io

-- 
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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAFXvW-5mdCCZceHRXkVRrhCod0w26g8Mb%3DDLMLXC1Sby8HGTJA%40mail.gmail.com.

Reply via email to