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.