From: Chris Hanson <[email protected]>
Subject: Re: [r6rs-discuss] Case sensitivity
Date: Mon, 23 Feb 2009 16:35:42 -0800

> I _don't_ particularly like the use of #!case-fold for this reason, as
> it's too dynamic.  I don't see any reason why it's a good idea to
> change this in the middle of a file. 

Programs doesn't need to be read from a file.  What I like
about #!case-fold is that it works in following both situations:

(1) I read file A and file B, both contains #! directives at the
    beginning.
(2) I concatenate the whole content of file A and file B into
    a static string literal embedded in my application and
    call read on a string port opened on the literal.

(Encoding works in different layer; it should be handled _before_
'read' sees characters.  I don't have a definite answer for that,
but file-level encoding specification ("coding: " magic line,
as several languages and editors recognizes as well) is working
fine in Gauche).

--shiro


_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to