Peter Bex <[EMAIL PROTECTED]> 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
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users