<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>I second that. </div><div><br></div><div><br></div><br><div><div>On Apr 19, 2012, at 5:57 AM, Laurent wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>(sorry, I couldn't figure out how to reply properly from the list archive, as I don't receive the dev-list emails.)</div><div><br></div><div>One string function that I often find useful in various scripting languages is a `string-split' (explode in php).</div>
<div>It can be done with `regexp-split', but having something more along the lines of a `string-split' should belong to a racket/string lib I think.</div><div>Plus it would be symmetric with `string-join', which already is in racket/string (or at least a doc line pointing to regexp-split should be added there).</div>
<div><br></div><div>Maybe also a `string-replace' could be useful, especially when one does not want regexps and has special characters that need to be quoted.</div><div><br></div><div>Regexps are very powerful, but they are complicated for beginners.</div>
<div><br></div><div>Laurent</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I think `racket/string' should provide the useful string functions,<br>rather than refer users to srfis. The only srfi/13 function I ever<br>use is `string-trim-both' -- any objection to adding that to<br>`racket/string'?<br>
On Tue, Apr 17, 2012 at 5:29 PM, Matthias Felleisen<br><<a href="mailto:matth...@ccs.neu.edu">matth...@ccs.neu.edu</a>> wrote:<br>><br>> I saw no response to this question and no commit that includes the<br> > cross-link. Anything?<br>
><br>><br>> Begin forwarded message:<br>><br>>> From: Asumu Takikawa <<a href="mailto:as...@ccs.neu.edu">as...@ccs.neu.edu</a>><br>>> Subject: Re: [racket] Are There More String Functions?<br>
>> Date: April 12, 2012 5:47:26 PM EDT<br>>> To: Cristian Esquivias <<a href="mailto:cristian.esquiv...@gmail.com">cristian.esquiv...@gmail.com</a>><br>>> Cc: <a href="mailto:us...@racket-lang.org">us...@racket-lang.org</a><br>
>><br>>> On 2012-04-12 10:43:15 -0700, Cristian Esquivias wrote:<br>>>> As a slight aside, is this module mentioned anywhere in the Racket<br>>>> Guide or Racket Reference? I tried to RTFM as much as possible but<br>
>>> didn't see this module mentioned anywhere in the string pages. Should<br>>>> this module be mentioned for others like me?<br>>><br>>> I think that's an interesting point and has been brought up before on<br>
>> this list: what's the official stance on SRFIs? On the documentation<br>>> page they are near the bottom in "Miscellaneous libraries".<br>>><br>>> If their use is encouraged, maybe doc pages should have a pointer in the<br>
>> margin similar to how reference entries point to guide entries. For<br>>> example, the string section in the reference could point to SRFI-13.<br>>><br>>> Cheers,<br>>> Asumu<br>>> ____________________<br>
>> Racket Users list:<br>>> <a rel="nofollow" href="http://lists.racket-lang.org/users">http://lists.racket-lang.org/users<br></a>><br>><br>> _________________________<br>> Racket Developers list:<br>
> <a rel="nofollow" href="http://lists.racket-lang.org/dev">http://lists.racket-lang.org/dev<br></a>
--<br> sam th<br><a href="mailto:sa...@ccs.neu.edu">sa...@ccs.neu.edu</a></blockquote>
_________________________<br> Racket Developers list:<br> <a href="http://lists.racket-lang.org/dev">http://lists.racket-lang.org/dev</a><br></blockquote></div><br></body></html>