Re: regexp-split for Guile

2012-10-20 Thread Mark H Weaver
Hi Chris, "Chris K. Jester-Young" writes: > On Fri, Oct 12, 2012 at 05:57:11PM -0400, Mark H Weaver wrote: >> Beyond matters of taste, I don't like this because it makes bugs less >> likely to be caught. Suppose 'limit' is a computed value, normally >> expected to be positive. Code that follows

Re: regexp-split for Guile

2012-10-20 Thread Mark H Weaver
I wrote: > (regexp-split " +" " foo bar baz " #:limit 3 #:trim 'both) > => ("foo" "bar" "baz") > (regexp-split " +" " foo bar baz " #:limit 2 #:trim 'both) > => ("foo" "bar") Sorry, that last example is wrong of course, but both of these examples raise an interesting qu