Subject: Re: About ''"CooL": low-level macros considered useful
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 9 Apr 2001 09:22:32 GMT
Newsgroups: comp.lang.scheme
Message-ID: <9arv0o$8h4ar$1@fido.engr.sgi.com>
Kirill Lisovsky  <lisovsky@acm.org> wrote:
+---------------
| I think that case-sensitive Schemes provide most natural solution
| possible.
+---------------

Actually, rather than be forced to choose one or the other exclusively,
I kinda like the way MzScheme handles it, with a "parameter" that can be
set or cleared as desired, e.g.:

	> (begin
	    (define foo (read))
	    (define bar
	      (parameterize ((read-case-sensitive #t)) ; sorta like fluid-let
		(read)))
	    (define baz (read)))
	FooFoo BarBar BazBaz	; hand-typed input
	> (list foo bar baz)
	(foofoo BarBar bazbaz)
	> 

MzScheme's parameters are thread-specific, so that if you're writing a
multi-threaded app (e.g., a web server or other multi-user interaction)
you can tailor case sensitivity without inter-thread interference.


-Rob

-----
Rob Warnock, 31-2-510		rpw3@sgi.com
SGI Network Engineering		<URL:http://reality.sgi.com/rpw3/>
1600 Amphitheatre Pkwy.		Phone: 650-933-1673
Mountain View, CA  94043	PP-ASEL-IA