Re: [racket-dev] Are There More String Functions?

2012-04-18 Thread Eli Barzilay
Yesterday, Sam Tobin-Hochstadt wrote: I think `racket/string' should provide the useful string functions, rather than refer users to srfis. The only srfi/13 function I ever use is `string-trim-both' -- any objection to adding that to `racket/string'? +1 for this in general, and since the

Re: [racket-dev] Are There More String Functions?

2012-04-18 Thread Matthias Felleisen
On Apr 18, 2012, at 3:12 PM, Eli Barzilay wrote: `string-normalize-spaces', which takes a string and a regexp for the spaces, and turns all spaces into single ones. Same principles as above. This one is getting a `#:trim?' keyword that says whether spaces at the edges should be dropped

Re: [racket-dev] Are There More String Functions?

2012-04-18 Thread Eli Barzilay
Just now, Matthias Felleisen wrote: On Apr 18, 2012, at 3:12 PM, Eli Barzilay wrote: `string-normalize-spaces', which takes a string and a regexp for the spaces, and turns all spaces into single ones. Same principles as above. This one is getting a `#:trim?' keyword that says

Re: [racket-dev] Are There More String Functions?

2012-04-18 Thread Eli Barzilay
Just now, Sam Tobin-Hochstadt wrote: 'trim' is used in lots of languages for this, and I think we should stick with that. The issue is a name for the second function that normalizes spaces. (And if you're saying that `trim' is doing both in lots of languages, then that's wrong AFAICT.) On

Re: [racket-dev] Are There More String Functions?

2012-04-18 Thread namekuseijin
On Wed, Apr 18, 2012 at 4:12 PM, Eli Barzilay e...@barzilay.org wrote: * Finally, I'm also adding a related function:  `string-normalize-spaces', which takes a string and a regexp for the  spaces, and turns all spaces into single ones.  Same principles as  above.  This one is getting a

Re: [racket-dev] Are There More String Functions?

2012-04-18 Thread Eli Barzilay
Just now, namekuseijin wrote: On Wed, Apr 18, 2012 at 4:12 PM, Eli Barzilay e...@barzilay.org wrote: * Finally, I'm also adding a related function:  `string-normalize-spaces', which takes a string and a regexp for the  spaces, and turns all spaces into single ones.  Same principles as  

Re: [racket-dev] Are There More String Functions?

2012-04-18 Thread Tony Garnock-Jones
On 04/18/2012 03:28 PM, Eli Barzilay wrote: `string-normalize-spaces', which takes a string and a regexp for the spaces, and turns all spaces into single ones. Same principles as above. This one is getting a `#:trim?' keyword that says whether spaces at the edges should be dropped (the