Hi Everyone.

I would like to suggest to extend the behavior `Mix.Tasks.Format` with the 
optional callback `quote_to_string/2`. This would have the advantage that 
you could format a changed AST with a formatter plugin.

I would need something like this in my `rewrite` project. The `rewrite` 
tool changes the AST of some Elixir code with the help of the great 
`sourceror` lib. Afterwards I need to format this AST back to code. To 
support the formatter plugin `FreedomFormatter` I need the 
`quoted_to_algebra` function form `FreedomFormatter`. For now I have 
created a workaround for that. With the optional callback I could ask the 
maintainer of `FreedomFormatter` to implement the callback and in `rewrite` 
I could check whether the behaviour implements the function.

BR, Marcus

-- 
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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/515ca3c7-d5aa-4b7b-9efc-6547918e3332n%40googlegroups.com.

Reply via email to