Forgot to reply on this:

> One benefit of how things work today is that you can see intermediate 
results, and I can see people not happy if this behaviour is removed. :)

To clarify, I was definitely not hinting to remove that : this part is 
really lovely indeed !

I think this is probably what took us by surprise by the way, because 
somehow we are lead to think the assignment (a =) will be also be taken 
care of, with that level of polish.

It would be incredible to have something able to detect that we have an 
assignment in the previous statement, and re-assign if the next line is a 
|> (but there are probably tons of edge cases if we start dealing with 
this...).

Anyway - thanks for the clarification!

-- Thibaut

Le mercredi 24 novembre 2021 à 18:37:22 UTC+1, thibaut...@gmail.com a 
écrit :

> Hi,
>
> > There is nothing we can do unfortunately, without perhaps changing 
> upstream (i.e. how the Erlang shell system works)
>
> I understand ; thanks for the explanation ! We will use work-arounds for 
> now.
>
> -- Thibaut
>
> Le mercredi 24 novembre 2021 à 17:52:44 UTC+1, José Valim a écrit :
>
>> No, it is still a complete expression. Only if you wrap it parens, for 
>> example!
>>
>> On Wed, Nov 24, 2021 at 17:39 Adam Lancaster <ad...@a-corp.co.uk> wrote:
>>
>>> As a work around would having this be the first line make a difference?
>>>
>>> `a = DB.Resource |> where([r], not is_nil(r.datagouv_id))`
>>>
>>> Best
>>>
>>> Adam
>>>
>>> On 24 Nov 2021, at 16:37, José Valim <jose....@dashbit.co> wrote:
>>>
>>> Even then, it is debatable if we should do this change. One benefit of 
>>> how things work today is that you can see intermediate results, and I can 
>>> see people not happy if this behaviour is removed. :)
>>>
>>>
>>>
>>> -- 
>>> 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-co...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4KfGdC8vqj-n4LhRJDQcdmSGRdp2xJZKsAL5GT0wx_TCw%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4KfGdC8vqj-n4LhRJDQcdmSGRdp2xJZKsAL5GT0wx_TCw%40mail.gmail.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-co...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/elixir-lang-core/E5AAB4F7-9FCB-453B-B4DD-DF67A34AC4A9%40a-corp.co.uk
>>>  
>>> <https://groups.google.com/d/msgid/elixir-lang-core/E5AAB4F7-9FCB-453B-B4DD-DF67A34AC4A9%40a-corp.co.uk?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/1ffeb763-6f29-4dfb-8597-54888f33891cn%40googlegroups.com.

Reply via email to