chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] grep should use string-search?


From: Alejandro Forero Cuervo
Subject: Re: [Chicken-users] grep should use string-search?
Date: Tue, 10 Aug 2004 00:26:11 -0500
User-agent: Mutt/1.5.6+20040523i

> > That's reasonable. Especially since string-search is the same
> > as string-match "^...$".
>
> The other way around, OF COURSE!

Exactly.  One can get any of the two possible behaviours by using
"^expr$" or  ".*expr.*", regardless  of whether  string-search or
string-match is used; however, a default of "string-search" would
be more consistent with what "grep" usually does.

I'll   have  the   stream-grep  routine   to  use   string-search
then.

By the way,  expect interesting additions to  stream-ext (such as
iterator->stream, allowing

  (define (list->stream l)
    (iterator->stream
      (lambda (collect stop)
        (for-each collect l)))) ,

with-output-to-stream  and   with-input-from-stream  [of  chars],
etc.). :)

Alejo.
http://bachue.com/alejo

---=(  Comunidad de Usuarios de Software Libre en Colombia  )=---               
                                               
---=(  http://bachue.com/colibri )=--=( address@hidden  )=---                   
                                           

Attachment: signature.asc
Description: Digital signature


reply via email to

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