Re: [elixir-core:9706] Better Test Coverage Report

2020-09-11 Thread TecNoz by Daniel Cukier
Mission accomplished! Thanks for all support https://github.com/elixir-lang/elixir/pull/10317 On Thursday, September 10, 2020 at 10:40:57 AM UTC-3 José Valim wrote: > 1. it is under the lib/mix application on Elixir's repo > 2. It is most likely that "use ..., :view" is defining functions and th

Re: [elixir-core:9705] nested captures via & are not allowed

2020-09-11 Thread ivan.y...@gmail.com
Ah, thanks, parentheses indeed fix that. On Friday, September 11, 2020 at 2:48:42 PM UTC+2 José Valim wrote: > The & has low precedence (low binding). Therefore, "value ~> &op/1 ~> > &op2/1" is being parsed as "value ~> &(op/1 ~> &op2/1)", which is where the > warning comes from. > > Proof: > >

Re: [elixir-core:9703] nested captures via & are not allowed

2020-09-11 Thread José Valim
The & has low precedence (low binding). Therefore, "value ~> &op/1 ~> &op2/1" is being parsed as "value ~> &(op/1 ~> &op2/1)", which is where the warning comes from. Proof: iex(1)> Macro.to_string(quote do: value ~> &op/1 ~> &op2/1) "value ~> &(op / 1 ~> &op2/1)" -- You received this message be

[elixir-core:9703] nested captures via & are not allowed

2020-09-11 Thread ivan.y...@gmail.com
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