This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A useful syntax for regexps and other things


Maciej Stachowiak <mstachow@mit.edu> writes:

> Here are some examples of the #q
> syntax in action:
> 
> guile> #q/some funny \\ weird string\/
> "some funny \\\\ weird string\\"
> guile> #q%any delimiter %% will do %
> "any delimiter % will do "
> guile> #q@This is a weird \* \\.* x? regexp@
> "This is a weird \\* \\\\.* x? regexp"

If we're going to extend the read syntax, I'd prefer the scsh variant:

  #</some funny \\ weird string\/

In scsh, one can also say

  #<<END
   A line-delimited here-string!
  END

Jim?

/mdj