[elixir-core:8467] [Proposal] Add invert() method to Map module

2019-02-05 Thread Justin Gamble
Hi, I think an invert() method on Map would be convenient to use. It is only a handful of lines of code to add to a custom program, but why should users need to do that? In my opinion this basic functionality should be implemented by the Map module. The invert() method would operate the

[elixir-core:8466] Re: [Proposal] - New Formatter option for spaces around brackets/parens

2019-02-05 Thread Роман Смирнов
> At the same time, I am also an advocate for readability of code. Really? Imho, code examples above with extra spaces are awful to read. вторник, 5 февраля 2019 г., 13:01:47 UTC+3 пользователь Chris Hicks написал: > > I read and agree with the basic principle outlined there. I can definitely

[elixir-core:8465] Re: [Proposal] - New Formatter option for spaces around brackets/parens

2019-02-05 Thread Chris Hicks
I read and agree with the basic principle outlined there. I can definitely see the issue with an ever growing list of options, especially those that would allow for code to diverge quite a bit in the look between applications. There does need to be consistency. At the same time, I am also an

[elixir-core:8464] Re: [Proposal] - New Formatter option for spaces around brackets/parens

2019-02-05 Thread wojtek . mach
Hi Chris, To quote one of the design principles behind the formatter [1] > The second principle is to provide as little configuration as possible. This eases the formatter adoption by removing contention points while making sure a single style is followed consistently by the community as a

[elixir-core:8463] [Proposal] - New Formatter option for spaces around brackets/parens

2019-02-05 Thread Chris Hicks
While it's not a style I have seen often in Elixir code, though I've seen it elsewhere, I've found myself coding in a particular style that, for me at least, increases the readability of my code and I'd love to see an option in the formatter to allow for it. Essentially it all boils down to