[racket] [racket-dev] `string-split'

From: namekuseijin (namekuseijin at gmail.com)
Date: Thu Apr 19 12:55:13 EDT 2012

---------- Forwarded message ----------
From: namekuseijin <namekuseijin at gmail.com>
Date: Thu, Apr 19, 2012 at 1:54 PM
Subject: Re: [racket-dev] `string-split'
To: Sam Tobin-Hochstadt <samth at ccs.neu.edu>


On Thu, Apr 19, 2012 at 9:28 AM, Sam Tobin-Hochstadt <samth at ccs.neu.edu> wrote:
> Note that (string-split str ";") works given that implementation,


while we're at it, why do you guys make the order or arguments like that?

like, these are easier to read than in the order available in racket:

(string-split "," "6,5,1,12,13,8,15,9,3,7,4,2,14,10,11")
(sort < '(6 5 1 12 13 8 15 9 3 7 4 2 14 10 11))
(string-join "," '(6 5 1 12 13 8 15 9 3 7 4 2 14 10 11))

they also seem more sensible, because the more interesting argument
for such functions is not what is to be operated upon, but the
operator itself.  Coupled with currying, it'd be heaven... :)


Posted on the users mailing list.