[racket] Case with strings: normal behavior?

From: Laurent (laurent.orseau at gmail.com)
Date: Mon Nov 19 08:07:16 EST 2012

Hi,

Is this a bug or a not quite intuitive normal behavior?
> (define (foo s)
    (case s
      [("a") 'a]
      [else 'none]))
> (foo "a")
'a
> (foo (string-append "a" ""))
'none

in 5.3.1.5--2012-11-08(5589bcb/a) [3m].

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121119/eb9e4311/attachment-0001.html>

Posted on the users mailing list.