home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!tmb
- From: tmb@arolla.idiap.ch (Thomas M. Breuel)
- Newsgroups: comp.lang.scheme
- Subject: Re: Case sensitivity
- Date: 13 Nov 92 11:25:25
- Organization: IDIAP (Institut Dalle Molle d'Intelligence Artificielle
- Perceptive)
- Lines: 34
- Message-ID: <TMB.92Nov13112525@arolla.idiap.ch>
- References: <TMB.92Nov7012525@arolla.idiap.ch> <9211122127.AA06541@corn-pops>
- Reply-To: tmb@idiap.ch
- NNTP-Posting-Host: arolla.idiap.ch
- In-reply-to: Alan@lcs.mit.EDU's message of Thu, 12 Nov 1992 21:27:44 GMT
-
- Alan@lcs.mit.EDU writes:
- | From: "Thomas M. Breuel" <tmb@arolla.idiap.ch>
- | ... On the other hand, writing the same symbol as "Foo" in one place
- | and "foo" in another is just plain in bad taste....
- |
- |I love it. Earlier in this discussion there were people who wrote to say
- |that they -like- to write code such as
- |
- | (define (FACT n) (if (< n 2) 1 (* n (fact (- n 1)))))
- |
- |in order to emphasize the definitional occurrence. So now you've labeled
- |this as "bad taste". There is now no doubt that this discussion is going
- |nowhere fast.
-
- To spell it out more clearly: "_I_ consider it in bad taste". If I
- get code like that, I will do a downcase region. I think if you want
- to emphasize definitions, you should probably invest in a good editor
- with highlighting and styles, and a good Scheme mode...
-
- Since there are people who like one style, and there are other people
- who like another style, it seems that the best compromise might be
- simply not to allow different casings with the same spelling. Then,
- the question of whether they mean something different or the same
- can't even come up.
-
- Of course, this suggestion is only half serious; I don't expect Scheme
- to change, and, frankly, it doesn't make much of a difference, since
- the most common use for case is to distinguish related names of
- variable, types, constructors, signatures, functors, and modules, and
- of those, Scheme programs usually only use variable names anyway. But
- in languages that do support those constructs, case distinctions are
- very useful and quite straightforward--when used consistently.
-
- Thomas.
-