home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / misc / 3029 < prev    next >
Encoding:
Text File  |  1992-09-11  |  3.9 KB  |  73 lines

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!hellgate.utah.edu!lanl!cochiti.lanl.gov!jlg
  3. From: jlg@cochiti.lanl.gov (Jim Giles)
  4. Subject: Re: Opinions on case sensitivity in programming languages?
  5. Message-ID: <1992Sep11.182755.11249@newshost.lanl.gov>
  6. Sender: news@newshost.lanl.gov
  7. Organization: Los Alamos National Laboratory
  8. References: <1992Sep10.034246.14218@oucsace.cs.ohiou.edu> <KERS.92Sep10093900@cdollin.hpl.hp.com> <1992Sep11.083718.5030@st-andrews.ac.uk>
  9. Date: Fri, 11 Sep 1992 18:27:55 GMT
  10. Lines: 61
  11.  
  12. In article <1992Sep11.083718.5030@st-andrews.ac.uk>, ajtd@honey.st-and.ac.uk (Tony Davie) writes:
  13. |> [...]
  14. |> Case sensitivity is a throwback to the days when the only input to a computer
  15. |> was a teletype or a punched card. There is no excuse for languages to be case
  16. |> insensitive nowadays, EXCEPT when connecting to machines which may have such
  17. |> equipment attached to them. This makes it sensible to make names of machines
  18. |> on a network, for instance, case-insensitive.
  19.  
  20. There's no excuse for a language to adopt a feature which impairs user
  21. productivity rather than improving it.  Which of these case in/sensitivity
  22. does is hard to tell.  One: there have been no human-factors experiments
  23. (that I know of) which address the issue.  Two: user opinions are next to
  24. worthless - it is a commonplace observation among human-factors researchers
  25. that the users are usually the *poorest* judges of what features effect
  26. their own productivity and in what ways.
  27.  
  28. I can only offer my own experience that there is often confusion and
  29. dissent among programmers who use differing case conventions.  These
  30. problems don't arise (obviously) in case insensitive languages.  So,
  31. for languages in which a specific case convention is not universally
  32. accepted (maybe even enforced by the language itself), case sensitivity 
  33. is *probably* an inhibitor of productivity.  This *may* be offset if
  34. case sensitivity has additional advantages due to the specific nature
  35. and purpose of the language involved.  Like in a symbolic math
  36. package (Macsyma, Reduce, Mathematica, etc.) which should be case
  37. sensitive because conventional math notation is (they should also
  38. be font sensitive; allow other alphabets - like Greek; be sensitive
  39. to position - like having true super- and subscripts; be sensitive
  40. to font size, boldness, italics; etc. - all of which add considerable
  41. complexity to keyboard entry).  Without all of the latter parenthetic 
  42. capabilities, mere case sensitivity, even for math uses, is of dubious
  43. value.
  44.  
  45. I'm afraid that case sensitivity, for most programming environments, is
  46. about as appropriate as color sensitivity would be.  This is, as I stated
  47. in the first paragraph, only an opinion - there is no objective basis
  48. for decisions on this issue.
  49.  
  50. Interestingly, there was a language which was both case sensitive and
  51. color sensitive.  Madcap (since called Modcap - by developers who lost
  52. their sense of humor about the project and began taking themselves
  53. very seriously) required a two-color ribbon teletype.  The blue (or
  54. black on some models) was for program text, anything in red was
  55. treated as commentary.  Case sensitivity was also interesting: all
  56. identifiers had to be initial caps, all the rest lower case.  In this
  57. way, they could implement multiplication as justaposition of identifiers
  58. without an explicit operator.  `ThetaPi' was clearly `Theta' times `Pi', 
  59. while `Thetapi' was clearly a single seven letter identifier.  No other 
  60. use of case was allowed.  The language was also sensitive to the degree 
  61. of indentation, and had several other peculiarities - some of which
  62. have not been duplicated in expressive power since: like their looping 
  63. construct.
  64.  
  65. Note that since case had a clearly defined *syntactic* meaning (the 
  66. appropriate level for case sensitivity to matter), the Madcap use
  67. was probably not too bad.  Certainly it would never have led to
  68. dissention or confusion among users - they *couldn't* use conflicting
  69. conventions.
  70.  
  71. -- 
  72. J. Giles
  73.