I would say your function would be better named is-digit? and that the char-numeric? is exactly what it is intended to be with respect to Unicode characters, which is what a Racket character represents.
On Tue, Sep 4, 2012 at 4:37 AM, Pierpaolo Bernardi <olopie...@gmail.com> wrote: > The non-cooperation between char-numeric? and string->number is very annoying. > > I had to resort to: > > (define (my-char-numeric? c) > (char<=? #\0 c #\9)) > > Maybe I am missing a function similar to my-char-numeric? somewhere in > the Racket docs? > > FWIW, my humble opinion is that char-numeric? should be defined as the > my- version above. The Unicode category, if that's what one wants, can > be accessed with char-general-category. > > Cheers > P. > _________________________ > Racket Developers list: > http://lists.racket-lang.org/dev _________________________ Racket Developers list: http://lists.racket-lang.org/dev