+1 from me. When I teach people Elixir, I skip over char lists. By the
time they need to use them, they're typically at the point that
they're mentally able to understand them without being overloaded.
Allen Madsen
http://www.allenmadsen.com


On Thu, Sep 22, 2016 at 3:13 PM, José Valim
<jose.va...@plataformatec.com.br> wrote:
> Single quotes will become a syntax error in Elixir 2.0.
>
> We need to consider two scenarios here: reading code and writing code.
>
> I believe that when someone reads ~c"" for the first time compared to '',
> the sigil version will be more foreign, while the single quotes is more
> likely to be assumed to be *something*. I am not sure one experience is
> necessarily better than the other.
>
> However, when it comes to writing, I believe the ~c"" version will be less
> confusing. There is very little chance someone will write ~c"" meaning a
> string by mistake. Specially if single quotes raise a syntax error in the
> future. And they are both learnable syntaxes, you need to learn what they
> mean.
>
> For those who are skeptical because they use single quotes extensively, I
> have one suggestion: try a change in your project where you replace single
> quotes by the sigil, give it a week and let us know how it goes. I have done
> it in a couple of my projects already and I was pleased with the results.
>
> Thanks everyone for the feedback so far!
>
>
> --
>
>
> José Valim
> www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Director of R&D
>
> --
> 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/CAGnRm4JNZ3x9ELz7NQaTNjp_wdMonv0%2BF2H4_Td%2BiGyLjbkHeg%40mail.gmail.com.
>
> 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/CAK-y3Ctc9upBe6xO6iZKVSjnX%3DbvhgsNc%3D1HfPb_jQi_dLHL4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to