I like this. While I've not battled to identify the difference since beginning 
with Elixir, muscle memory from other languages means I regularly have to stop 
myself typing 'strings'.

I hope single quotes will be used for strings alongside double quotes. Is that 
part of this proposal?

Andrew

> On 22 Sep 2016, at 19:39, Jim Freeze <jimfre...@gmail.com> wrote:
> 
> I've never had a problem with distinguishing between 'foo' and "foo", even as 
> a newby.
> 
> But, my question is, when '' is deprecated, will that mean that 'foo' is a 
> syntax error?
> 
> Jim
> 
> 
>> On Thu, Sep 22, 2016 at 12:03 PM, José Valim 
>> <jose.va...@plataformatec.com.br> wrote:
>> Hello everyone,
>> 
>> I have mentioned a couple times we would start a discussion for deprecating 
>> 'single quotes as char lists' from the language.
>> 
>> The use of single quotes to specify something that looks like a string but 
>> isn't really a string is often a source confusion. This is specially 
>> frustrating given the expectation brought from other languages where double 
>> and single quoted strings can be used almost interchangeably.
>> 
>> We already have a quite decent way of writing char lists, which is by using 
>> sigils: ~c"foo". For new developers, printing a char list as a ~c"foo" will 
>> likely give them better clues the type is not the same as "foo".
>> 
>> Of course we should not drive decisions based purely on the getting started 
>> experience but I believe the sigil approach will be clearer for beginner and 
>> advanced programmers alike.
>> 
>> The plan is not to deprecate them now but rather in the long term. Something 
>> like this:
>> 
>> 1. Elixir v1.4 will inspect 'abc' as ~c"abc"
>> 2. Elixir v1.6 will effectively deprecate 'abc'
>> 3. Elixir v2.0 "who knows when" will remove single-quotes
>> 
>> Thoughts?
>> 
>> 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/CAGnRm4%2BX9q9SAZjj4otmbjXRBhJyvQk0r%3D8pERwtrFcAczGNPQ%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> -- 
> Dr. Jim Freeze, Ph.D.
> (m) 512 949 9683
> -- 
> 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/CAP1mN_xgfFm2Hueem407k994wAGnCvEupWRkOey8SCJnGPT6Jg%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/ABC56812-F975-40A3-B3B6-A72130EF0050%40andrewtimberlake.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to