Re: [Scheme-reports] Formal Comment: Change syntax of symbols from |<symbol element>*| to #"<string element>*" Alex Shinn (07 May 2012 14:51 UTC)

Re: [Scheme-reports] Formal Comment: Change syntax of symbols from |<symbol element>*| to #"<string element>*" Alex Shinn 07 May 2012 14:51 UTC

On Mon, May 7, 2012 at 11:49 PM, Alan Watson <alan@alan-watson.org> 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.

The BNF is simpler this way though, and
easier for people to remember IMHO.

--
Alex

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