--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/7da7971b-5abb-4ed2-afb1-4add2b4e0dca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I personally prefer the clearer approach of calling "inspect" instead of an operator.
On Sun, Jul 30, 2017 at 1:17 AM, niahoo osef <ludovic....@gmail.com> wrote:
Hey,I would like to know what you would think about a new interpolation mechanism that automatically calls `inspect` as the `#{}` operator calls `to_string` ?Just like `raise "bad value : #!{var}"` instead of `raise "bad value : #{inspect var}"` (The operator could be anything, I don't care)Thanks.
--
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-co...@googlegroups.com.
Agreed. Inspect can leak sensitive information easily, and I think it's important to annotate that a structure will be using its debug representation in a string.
I personally prefer the clearer approach of calling "inspect" instead of an operator.