x = %{x: 1}
with %{x: x} <- x do
IO.inspect x
end
^ This works.
x = %{x: 1}
with
%{x: x} <- x
do
IO.inspect x
end
^ This is a syntax error.
Proposing that the latter should be allowed for 2 reasons:
1) it looks like it should work ¯\_(ツ)_/¯
this sounds like trolling but is really not.
Ah I thought `with` was part of the language, then I realized how small the
language core is.
Now I wish the language is actually a little bigger :S mixed feelings.
Thanks for the reply!
On Tuesday, 30 January 2018 23:20:49 UTC+11, José Valim wrote:
>
> Imagine you have this code:
>
>foo =
Founder and Director of R*
>>>
>>> On Tue, Jan 30, 2018 at 1:46 PM, Ben Wilson <benwil...@gmail.com> wrote:
>>>
>>>> This is achievable with `\` btw:
>>>>
>>>> with \
>>>> %{x: x} <- y
>>>> do
>>&g
gif animation not supported it looks like
On Tuesday, 23 June 2020 13:31:23 UTC+10, Po Chen wrote:
>
>
>
> On Tuesday, 23 June 2020 13:20:58 UTC+10, Po Chen wrote:
>>
>> Or ipython
>>
>> On Thursday, 4 June 2020 01:50:41 UTC+10, Edison Yap wrote:
>>&
On Tuesday, 23 June 2020 13:20:58 UTC+10, Po Chen wrote:
>
> Or ipython
>
> On Thursday, 4 June 2020 01:50:41 UTC+10, Edison Yap wrote:
>>
>> With the recent Ruby 2.7 release came a new version of the IRB and that
>> works really well.
>>
>> S
Or ipython
On Thursday, 4 June 2020 01:50:41 UTC+10, Edison Yap wrote:
>
> With the recent Ruby 2.7 release came a new version of the IRB and that
> works really well.
>
> Some of the features I'd like to see in IEx is:
> - Multiline REPL support (so when you key-up on your history, it returns a