ivan.y...@gmail.com
unread,Sep 11, 2020, 8:45:21 AM9/11/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixir-lang-core
I just ran into this error "nested captures via & are not allowed" having no nested captures whatsoever,, but using captures in a chain of operations with custom operator, like this:
`value ~> &op/1 ~> &op2/1` where ~> is basically an alias for some function, so when rewritten it looks like this: `flat_map(flat_map(value, &op/1), &op2/1)` and it works totally fine. Is there a reason why this shouldn't be allowed or the compiler is wrong on detecting a nesting here?