[racket-dev] Character classification

From: Pierpaolo Bernardi (olopierpa at gmail.com)
Date: Tue Sep 4 06:40:51 EDT 2012

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.

Posted on the dev mailing list.