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