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.

On Sunday, July 30, 2017 at 3:31:57 AM UTC-4, José Valim wrote:
>
> I personally prefer the clearer approach of calling "inspect" instead of 
> an operator.
>
>
>
> *José Valim*
> www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Director of R&D
>
> On Sun, Jul 30, 2017 at 1:17 AM, niahoo osef <ludovic....@gmail.com 
> <javascript:>> 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 <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elixir-lang-core/7da7971b-5abb-4ed2-afb1-4add2b4e0dca%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/elixir-lang-core/7da7971b-5abb-4ed2-afb1-4add2b4e0dca%40googlegroups.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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/4b09d0eb-ff2a-45a3-bac1-b6c0cfc8050d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to