[racket-dev] Argument positions of string-... like functions

2012-04-19 Thread Laurent
(define (string-index-of sub str [start 0] [end (string-length str)]) I always need to go check the documentation for that kind of argument position (like for (string-replace from str to) ). To me, what makes more sense is to have the str argument on the first position, just like for a method

Re: [racket-dev] Argument positions of string-... like functions

2012-04-19 Thread Eli Barzilay
A few minutes ago, Laurent wrote:   (define (string-index-of sub str [start 0] [end (string-length str)]) I always need to go check the documentation for that kind of argument position (like for (string-replace from str to) ). To me, what makes more sense is to have the str argument on