[plt-scheme] Uppercase symbol handling

From: Paulo Jorge de Oliveira Cantante de Matos (pocm at sat.inesc-id.pt)
Date: Wed Feb 2 14:18:31 EST 2005

Hi all,

I usually use everything lowercase by default but I'm reading
xml from the net so some symbol just show up as uppercase. I'm
getting somewhat confused with handling some issues. Can
someone explain the behaviour of the next 2 interactions? (with
module language enabled)
(module test mzscheme

  (read-case-sensitive #t)

  (define test
    (lambda (l)
      (if (eq? (car l) 'Item)
          (display "OK")
          (display "Not OK"))))

  (define test1
    (lambda (l)
      (if (eq? (car l) 'item)
          (display "OK")
          (display "Not OK"))))

> (test '(Item a b c))
Not OK
> (test1 '(Item a b c))
Not OK



Paulo Jorge Matos - pocm at sat inesc-id pt
Engº de Informática e Computadores
INESC-ID - Grupo SAT - MathSAT

Posted on the users mailing list.