chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] "raw" strings


From: Alex Shinn
Subject: Re: [Chicken-users] "raw" strings
Date: Fri, 10 Oct 2008 16:36:02 +0900
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2.50 (darwin)

Peter Bex <address@hidden> writes:

> On Fri, Oct 10, 2008 at 09:07:59AM +0200, felix winkelmann wrote:
>> 
>> Since escaping backslashes inside string literals can get tedious,
>> I wondered wether a non-escaping string-syntax might be handy.
>> Something like:
>> 
>>   #" ... "           (doesn't treat backslashes special, with the
>> exception of \")
>> 
>> Any alternative suggestions?
>
> Don't we already have that, as the heredoc syntax?
>
> Could you give an example in which you need this?

As a wild guess, regular expressions?  The syntax of regexps
is really horrible for any language which represents them as
plain strings.

On the other hand something like Gauche's #/.../ or Ruby's
#rx{...} for a regular expression literal would be even more
convenient, and potentially allow for the trailing imsx
modifiers.

-- 
Alex




reply via email to

[Prev in Thread] Current Thread [Next in Thread]