[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] Formal Comment: Change syntax of symbols from |<symbol element>*| to #"<string element>*"



Making the two the same seems like a no-brainer to me. A parameterised contexts means that users have to learn two contexts which are different only for historical reasons. 

Steve

On 7 May 2012, at 15:49, Alan Watson wrote:

>>>> The only difference is that \" is permitted within vertical lines:
>>>> (eq? |"| |\"|) => #t.
>>> 
>>> Why?
>> 
>> Simplicity and uniformity.
>> 
>> I have filed ticket #390 to allow \| in strings as well.  That way, there
>> can be just one escaping/unescaping procedure for both strings and symbols.
> 
> This seems to be an unnecessary change. There can be one procedure for both strings and symbols even if \" is not allowed in symbols and \| not allowed in strings; it just has to take the delimiter as an argument.
> 
> Regards,
> 
> Alan
> 
> 
> _______________________________________________
> Scheme-reports mailing list
> Scheme-reports@x
> http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports


_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports