In which case READ should be told what it is supposed to do, or the
thing you're reading should also be marked.

The syntax marker isn't a per-file marker, it's a marker of an input
stream.  READ should have defaults that it uses in the absence of any
stream markers.

And no, there isn't currently a standard mechanism for doing any of
this.  But there should be.  Want to implement one?


On Mon, Mar 15, 2010 at 4:13 PM, Joe Marshall <[email protected]> wrote:
> On Mon, Mar 15, 2010 at 3:14 PM, Chris Hanson <[email protected]> wrote:
>> This should be a per-file option; it's a syntactic hack.
>
> Do we have a per-file marker mechanism?
>
>>  Instead of
>> having a global option, invent some kind of # syntax to say what the
>> keyword syntax is.  This is how case sensitivity should be handled as
>> well, IMO.
>
> The problem with handling case-sensitivity this way is that you want
> to close calls to READ over the sensitivity at the call site.  (I found this 
> out
> when PLT scheme switched to case-sensitive.  I went and added the magic
> # syntax to my files and discovered that it didn't fix the problem.  Calls to
> read were being case-sensitive.  It occurred to me that if I'm writing
> insensitive
> code, I probably want READ to be insensitive, too. (or if it was legacy code,
> that I'd be expecting the old behavior).
> --
> ~jrm
>


_______________________________________________
MIT-Scheme-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/mit-scheme-devel

Reply via email to