Oh I get! Okay then :)

On Sat, Oct 21, 2017, 20:50 José Valim <[email protected]> wrote:

> Hi Glauber,
>
> The formatter is not allowed to change the underlying AST. For example,
> someone could write a macro that interprets & in a completely different way
> than Elixir's, and if we rewrite that, we would break the user code.
>
> To put it in other words, the formatter has no semantic understanding of
> the code.
>
>
>
> *José Valimwww.plataformatec.com.br
> <http://www.plataformatec.com.br/>Founder and Director of R&D*
>
> On Sat, Oct 21, 2017 at 4:52 PM, Glauber Campinho <[email protected]>
> wrote:
>
>> I was changing some code, removed all the extra params to the function
>> and forgot to simplify the capture, so I notice that the formatter also
>> don't care about it. So, I would like to add this rule, it feels way nicer
>> to read and I didn't see anything about this case:
>>
>>     assert_format "&foo(&1)", "&foo/1"
>>     assert_format "&foo(&1, &2, &3)", "&foo/3"
>>
>> I would be happy to do it if people agree.
>>
>> Cheers,
>> Glauber
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "elixir-lang-core" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elixir-lang-core/CACh1tgG03MUYHdMqS4ii4wtzeqUu6FwhRVKej5ecp1gYmA7tSw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/elixir-lang-core/CACh1tgG03MUYHdMqS4ii4wtzeqUu6FwhRVKej5ecp1gYmA7tSw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4J2%2BaxT4mihA1JnAgS8WzA1_DWkFDTxF6D_7J%2Bur-1yVg%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4J2%2BaxT4mihA1JnAgS8WzA1_DWkFDTxF6D_7J%2Bur-1yVg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CACh1tgFnrpeNf5nmLX%2BwH3in%2Bm3qWN%3D9DYK%2B-5djFF2nw-tcoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to