home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / scheme / 2585 < prev    next >
Encoding:
Internet Message Format  |  1992-11-13  |  2.1 KB

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