[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 199.22



Quoting Shriram Krishnamurthi:
> Matthew Flatt wrote:
> 
> >  * EXPERIMENTAL: Added `#cs' and `#ci' prefixes for controlling
> >    case sentivity during `read'. The sequence `#cs' can be used as a
> >    prefix for any expression to make symbols within the expression
> >    case-sensitive.  The `#ci' prefix similarly makes symbols
> >    case-insensitive. For example,
> 
> I'm a bit concerned about this.  I guess the way to think about this
> is, if there is ANY doubt at all as to how case will be interpreted, I 
> should just make it explicit?  

The way I think about it is this: assume all code is read in
case-insensitive mode, and use #cs to mark case-sensitive code.

The #ci prefix is mostly there for symmetry.

> Also, how does this work for vectors?

I'm not entirely sure what the question is, but #cs and #ci work for
any readable input:

  > #(a B)
  #2(a b)
  > #cs#(a B)
  #2(a |B|)


Matthew