Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Uppercasing symbols
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tim Bradshaw  
View profile  
 More options Dec 7 1998, 3:00 am
Newsgroups: comp.lang.lisp
From: Tim Bradshaw <t...@aiai.ed.ac.uk>
Date: 1998/12/07
Subject: Re: Uppercasing symbols
* William Paul Vrotney wrote:

> I can go either way on the default case mode for reading of symbols, so I am
> not ultimately trying to argue for one over the other, I just want to
> understand the how programmers use case in Lisp.  But here is a mind
> experiment for you to help me answer my original query into these phenomena.
> Suppose that we had originally defined Lisp to be case sensitive reading of
> symbols, which eliminates the historical issues, and allow me to assume for
> the sake of this mind experiment that we are not going to consider the fact
> we can distinguish PRINT in prose (something I like by the way) is an
> important enough reason to define a language spec.  Then today, would Lisp
> programmers have reasons to ever want the case insensitive version and for
> what reasons?

I would want a case insensitive reader, and I would mandate it for any
projects I ran.

Why?  Because I find that I spend a huge amount of time when dealing
with a certain common style of C/C++/Java programming which likes to
name everything in weird-mixed-case -- FooInstance, (or should that be
fooInstance?) FooClass, MakeFoo.  Whenever I have to deal with these
things I find that: (1) it takes me significantly longer to type
things because I have to blip the shift key all the time, and I am not
a good enough typist to be able to type flat out while inserting
apparently randomly-distributed caps (so I get MakefOo of MakeFOo);
(2) I make mistakes because I can't remember the right case,
especially since the conventions are not always obvious.

Of course, it may be that in the kinds of languages where that style
thrives, things are so hard to write in any case, that being able to
type reasonably fluently is not an issue, so the capitalisation
doesn't hurt you.  But in Lisp I often find that, once I've worked out
what I want to do, I type chunks of code almost at the speed I am
typing this message, so it would really hurt me.

(It's interesting that zmacs has a mode where it automagically types
code in CAPS and comments in ordinary case. That works OK for the
style some people like, but it wouldn't generalise to the StudLy style
unless you had very sophisticated analysis in there).

--tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.