[racket-dev] Very quick poll re `string-trim'

From: Eli Barzilay (eli at barzilay.org)
Date: Fri May 11 09:56:18 EDT 2012

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!

Posted on the dev mailing list.