[racket-dev] Character classification

From: Doug Williams (m.douglas.williams at gmail.com)
Date: Tue Sep 4 09:56:04 EDT 2012

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 <olopierpa at 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

Posted on the dev mailing list.