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: CVS script


Jim Blandy <jimb@red-bean.com> writes:

> I like the bit about how a string supplied as a predicate
> automatically turns into a regexp.  That might be a good convention
> to use more widely, whenever one supplies a predicate on strings.
> If the context says the predicate will be applied to filenames, it
> should be a glob pattern.  If the context just says it'll be applied
> to strings, it should be a full regexp.

I really like being able to apply full regexps to paths.  I suppose
you could use a predicate that just applies a regexp, but I'd rather
see some way to use either a glob or a regexp directly.  Perhaps a
symbol arg ('regex or 'glob).

-- 
Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930