Re: [racket-dev] `regexp-replaces'

2012-06-22 Thread Eli Barzilay
Just now, Laurent wrote: > > Maybe we could consider dictionaries for the replacement lists? No, because the keys are regexp patterns, so there's no point in using dictionaries. -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://barzilay.org/

Re: [racket-dev] `regexp-replaces'

2012-06-22 Thread Laurent
On Fri, Jun 22, 2012 at 5:36 PM, Eli Barzilay wrote: > Yesterday, Laurent wrote: > > add1 > > I also use such a function from time to time, and I'd be happy to > > have it in the string or regexp libs. > > I'll assume that without other replies, there are no objections to > adding it? > > Also, a

Re: [racket-dev] `regexp-replaces'

2012-06-22 Thread Eli Barzilay
Yesterday, Laurent wrote: > add1 > I also use such a function from time to time, and I'd be happy to > have it in the string or regexp libs. I'll assume that without other replies, there are no objections to adding it? Also, at least as a start, I'm thinking of a function that looks just like the

Re: [racket-dev] `regexp-replaces'

2012-06-21 Thread Laurent
add1 I also use such a function from time to time, and I'd be happy to have it in the string or regexp libs. Laurent On Thu, Jun 21, 2012 at 1:56 PM, Eli Barzilay wrote: > While scanning code for a minor incompatible in a commit, I ran into > this function which is the ffi collection of all pla

[racket-dev] `regexp-replaces'

2012-06-21 Thread Eli Barzilay
While scanning code for a minor incompatible in a commit, I ran into this function which is the ffi collection of all places. (See the docs for what it does.) Given that this comes up often, maybe it's time to add this to `racket/string'? (Or maybe `racket/private/string' next to the other regex