[elixir-core:7823] Proposal: allow newline after `with`

2018-01-30 Thread Po Chen
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.

Re: [elixir-core:7825] Proposal: allow newline after `with`

2018-01-30 Thread Po Chen
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 =

Re: [elixir-core:7835] Proposal: allow newline after `with`

2018-01-30 Thread Po Chen
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

[elixir-core:9583] Re: Multiline IEx support? (Inspiration from 2.7 IRB)

2020-06-22 Thread Po Chen
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: >>&

[elixir-core:9582] Re: Multiline IEx support? (Inspiration from 2.7 IRB)

2020-06-22 Thread Po Chen
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

[elixir-core:9581] Re: Multiline IEx support? (Inspiration from 2.7 IRB)

2020-06-22 Thread Po Chen
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