[racket-dev] Very quick poll re `string-trim'
The question you need to ask is whether you want string-trim to be usable by someone who is not familiar with our syntax (or any syntax) of regexp, which is an embedded sublanguage with a definitely complex and somewhat obscure syntax. -- Matthias
On May 11, 2012, at 9:56 AM, Eli Barzilay wrote:
> An hour and a half ago, Robby Findler wrote:
>> Did you consider an optional argument to string-trim?
>
> Yes, but it seems that if you're moving from
>
> (string-trim "stuff" " ")
>
> to some
>
> (string-trim "stuff" " " #:repeated? #t)
>
> then you could just as well go with
>
> (string-trim "stuff" #rx" +")
>
> instead. IOW, a keyword is possible, but doesn't seem useful given
> that the intention is for this to be a function that is simple and/or
> convenient.
>
> --
> ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
> http://barzilay.org/ Maze is Life!
> _________________________
> Racket Developers list:
> http://lists.racket-lang.org/dev