[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-mit-scheme] small glitch
From: |
Taylor R Campbell |
Subject: |
Re: [Bug-mit-scheme] small glitch |
Date: |
Thu, 12 Mar 2015 06:46:16 +0000 |
User-agent: |
IMAIL/1.21; Edwin/3.116; MIT-Scheme/9.1.99 |
Date: Tue, 10 Mar 2015 10:50:57 -0700
From: Mike Wiley <address@hidden>
Hi I am new to programming. I am using Scheme and Art of
Programming book. I have come across a small glitch with the
function ctrl x z...the line by line programming testing window. I
put in (define Robert 'Bob) and gave the value robert. And when you
call that value Robert it says the value is bob. which in the book
bob should is Bob.
Scheme syntax is case-insensitive -- or, specifically, case-folding.
So there is no difference between writing
(define Robert 'Bob)
and
(define robert 'bob)
and
(DEFINE ROBERT 'BOB)
You can make case significant by setting the parser variable
*parser-canonicalize-symbols?* to true (e.g., scmutils does this for
writing classical mechanics notation in Scheme).