[elixir-core:7313] [Proposal] Control block with annotations and no commas

2017-07-23 Thread niahoo osef
Hi, I would like yo know your opinion about cunstructs like this one. I guess this is not a priority for Elixir, and I know I can add it to Hex.pm. I'm just unhappy with the `with` block and I want to know what you think. I made a simple implementation here : https://github.com/niahoo/ctrl wit

Re: [elixir-core:7319] Re: [Proposal] Control block with annotations and no commas

2017-07-24 Thread niahoo osef
"Why not just wrap the expressions in a tuple ?" Well because you have to wrap both sides and mess with those commas, which is annoying for editing code and adds noise for the reader. Tags, on the other side, are clearly identified as tags, a branching mechanism that is separated from the expre

Re: [elixir-core:7323] Re: [Proposal] Control block with annotations and no commas

2017-07-24 Thread niahoo osef
Tags are not very important, I agree with you for them being overkill and having them just in one particular place is not satisfying. That being said, it's an advanced feature that a newcomer can just ignore. It does not make the current features worse. The other issues you raise about the with

[elixir-core:7332] Re: [Proposal] Control block with annotations and no commas

2017-07-25 Thread niahoo osef
Hi Tallak, The functionality is the same as the `with` block where you can also mix very different stuff. The only difference is the do/block/commas layout and I added a shorthand to tag tuples easily. Thank you for your comment Le mardi 25 juillet 2017 00:21:41 UTC+2, Tallak Tveide a écrit

[elixir-core:7334] Re: [Proposal] Control block with annotations and no commas

2017-07-25 Thread niahoo osef
Yes, it was a proposal for the tagging, but as it has been said, it may not be a good symbol choice. Le mardi 25 juillet 2017 11:09:55 UTC+2, Tallak Tveide a écrit : > > Ok. Now I understand more. > > I believe the use of '|' is new? > > Tallak > > -- You received this message because you are

[elixir-core:7345] Automatic inspect interpolation

2017-07-29 Thread niahoo osef
Hey, I would like to know what you would think about a new interpolation mechanism that automatically calls `inspect` as the `#{}` operator calls `to_string` ? Just like `raise "bad value : #!{var}"` instead of `raise "bad value : #{inspect var}"` (The operator could be anything, I don't care

Re: [elixir-core:7348] Automatic inspect interpolation

2017-07-31 Thread niahoo osef
it's good enough. > >> >> >> *José Valim* >> www.plataformatec.com.br >> Skype: jv.ptec >> Founder and Director of R&D >> >> On Sun, Jul 30, 2017 at 1:17 AM, niahoo osef >> wrote: >> >>> Hey, >>> >>&

Re: [elixir-core:7386] [Proposal] !> for pipe-lining tuples

2017-08-17 Thread niahoo osef
I wrote something like that already, when there was no `with` : https://hex.pm/packages/monk But I do not use it that much in the end. Le jeudi 17 août 2017 13:33:31 UTC+2, david.and...@gmail.com a écrit : > > Yeah, I've read a few of them and found some user land libraries that seem > to imple

Re: [elixir-core:7386] [Proposal] !> for pipe-lining tuples

2017-08-17 Thread niahoo osef
I wrote something like that already, when there was no `with` : https://hex.pm/packages/monk But I do not use it that much in the end. What I use most is def ok!({:ok, val}), do: val SImpler. Le jeudi 17 août 2017 13:33:31 UTC+2, david.and...@gmail.com a écrit : > > Yeah, I've read a few of

Re: [elixir-core:7732] Proposal: mix compile to have --no-warnings option

2018-01-02 Thread niahoo osef
Hi, --no-deps-warnings could be fine :) Best regards Le 3 janv. 2018 01:04, "Onorio Catenacci" a écrit : > If you're getting so many warnings you can't find your output, perhaps > you've got other issues you should focus on? > > I mean I get your point--when I'm doing development I sometimes d

Re: [elixir-core:7855] mix deps.add || mix add package

2018-02-09 Thread niahoo osef
Hi everyone. I would like to know why Mix developers choose not to use a pure data file for dependencies and application metadata, unlike many other languages ? Thank you Le 9 févr. 2018 20:20, "Louis Pilfold" a écrit : > Hi Zareh > > Given the mix.exs file is not a machine readable format how

Re: [elixir-core:7981] Re: Proposal/Enhance for Elixir Formatter: Format Options (for Numbers)

2018-04-28 Thread niahoo osef
Absolutely, maybe the best way is to use fixtures and keep test data out of code if you have so many data rows that you have to use editor search to find them. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group an