elixir-lang/elixir — pull request #194 by alco (2012-03-28 08:32:40+00:00)
Title: Add Binary.Chars.to_binary impl for Any

This is a proposal.

I've taken the `iolist_to_binary Erlang.io_lib.format('~p', [thing])` line from `Binary.Inspect.inspect`. I don't think it's a good thing. Would it make sense for `to_binary` to be implemented in terms of `inspect` or vice versa?

The goal of the change is to reduce this `"Tesing interpolation #{inspect self}"` to this `"Tesing interpolation #{self}"`.