Re: [elixir-core:7121] Regex related new changes in Elixir

2017-05-08 Thread José Valim
More info here: https://github.com/elixir-lang/elixir/blob/3c22fa1b00369b5f29f42884f0fe664e5ed2ebc6/lib/elixir/lib/regex.ex#L36-L47 *José Valim* www.plataformatec.com.br Skype: jv.ptec Founder and Director of R On Mon, May 8, 2017 at 11:45 PM, eksperimental wrote:

Re: [elixir-core:7119] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread Andrea Leopardi
FWIW, when I need to test messages today I use `receive` in doctests as well. On May 8, 2017, 6:35 PM +0200, eksperimental , wrote: > I see your point. But I think it would simplify things if what's available in > IEx is available > in doctests, since that's the

Re: [elixir-core:7118] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
I see your point. But I think it would simplify things if what's available in IEx is available in doctests, since that's the environment it is supposed to be running in. On Mon, 8 May 2017 18:28:32 +0200 José Valim wrote: > Then you can use the File API to do

Re: [elixir-core:7116] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
They could be useful for doctests such when dealing with file and dirs creation and removal, you cd/1 a dir, and then mkdir_p, and `touch` a file and `ls` the contents of the specific dir, On Mon, 8 May 2017 18:17:33 +0200 José Valim wrote: > pwd and ls are

Re: [elixir-core:7115] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread José Valim
pwd and ls are not going to be effective in doctests as the results will be highly dependent of the user directory and what is on their machine. *José Valim* www.plataformatec.com.br Skype: jv.ptec Founder and Director of R On Mon, May 8, 2017 at 5:16 PM, eksperimental

Re: [elixir-core:7114] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
José Valim wrote: > We should support regular comments (a-I). We should not support (a-II) and > (a-III) because they are not valid in IEx. How come, since they are all treated as comments by IEx. -- You received this message because you are subscribed to the

Re: [elixir-core:7113] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
José Valim wrote: > import_iex_helpers sounds like an interesting idea. Is there any helper we > would use besides flush()? probably yes, such as pid/1,3 pwd/0, maybe ls/1 > > *José Valim* > www.plataformatec.com.br > Skype: jv.ptec > Founder and Director of R

[elixir-core:7111] [Proposal] Improve supported syntax in Doctest

2017-05-08 Thread eksperimental
I have been working on a few improvements for doctests. Everything that I'm proposing here has already been implemented. The proposals started because some modules in Elixir are not being tested with doctests, and this is because there are certain limitation in doctest. These improvements aim to