comp.lang.ada
 help / color / mirror / Atom feed
From: ok@goanna.cs.rmit.EDU.AU (Richard A. O'Keefe)
Subject: Re: Language Choice and Coding style
Date: 1996/07/01
Date: 1996-07-01T00:00:00+00:00	[thread overview]
Message-ID: <4r7pvr$sh6@goanna.cs.rmit.EDU.AU> (raw)
In-Reply-To: 4r3c89$com@Starbase.NeoSoft.COM


smize@Starbase.NeoSoft.COM (Samuel Mize) writes:
>My best understanding: In The Beginning, all we had was punched cards
>and simple teletype interfaces, so everything was all capitals.  That's
>all there were.  Also, compiler table-space was tight, so 6-character
>or 8-character identifier limits were common.

How soon they forget.
(a) COBOL has always allowed hyphens in identifiers, e.g.
	COMPUTE-WEEKLY-PAYROLL
    It's one of the oldest surviving programming languages.

(b) PL/I had two encodings (the "48-character set" and the "6-character
    set").  The 60-character coding had the underscore.  Where I used it,
    it was considered good PL/I style to use the underscore.  The ANSI
    PL/I standard is 1976, but the language is older than that.

(c) The third oldest computer I have ever seen in operation (the other
    two were an IBM 650 and an IBM 1620) was an IBM 1130.  It had an
    APL keyboard.  APL uses underlines.

(d) Flexowriters!  I've seen a fair bit of Algol 60 code written on
    flexowriters.

(e) Algol 60 and Algol 68 both allowed identifiers of any length, and
    both handled multi-word identifiers by allowing embedded spaces.
    E.g.
	'FOR' EMPLOYEE NUMBER := 1 'STEP' 1 'UNTIL' LAST EMPLOYEE 'DO'
	    WEEKLY PAYROLL[EMPLOYEE NUMBER] := 0;

>Once lower case and longer identifiers became available, some people
>started writing longer identifiers, while others stayed with the older
>trs style.  This is where IdentifiersLikeThis came from.

>I think this was first common in Pascal.  I don't think Pascal had
>underscores in identifiers, I may be wrong.

The old Pascal standard didn't (because the CDC character set lacked 'em).
UCSD Pascal allowed underscores but ignored them.
The new Pascal standard (10206) allows them.

Smalltalk didn't use underscores, because it was developed before the 1967
version of ASCII; the 1963 version of ASCII had a left arrow where the
underscore is now.

>Underscores also take a little more effort to type

That depends entirely on which keybaord you are using.
On the IBM 029 keypunches that I wrote Fortran, Burroughs Algol,
and PL/I in, it was very easy to type underscores.

>especially if
>you're not a good touch typist.  So, the MixedCase identifier is
>still common in some quarters.

This is ludicrous.  It is _harder_ to type 
	FooBarUgh
(because it requires *three* case shifts) than
	foo_bar_ugh
(because it requires only *two* case shifts).  And in an age of mutable
keymaps it is even sillier.

-- 
Fifty years of programming language research, and we end up with C++ ???
Richard A. O'Keefe; http://www.cs.rmit.edu.au/~ok; RMIT Comp.Sci.




  reply	other threads:[~1996-07-01  0:00 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-21  0:00 Language Choice and Coding style Nasser Abbasi
1996-06-21  0:00 ` David Emery
1996-06-21  0:00 ` Jerry van Dijk
1996-06-24  0:00   ` Adam Beneschan
1996-06-21  0:00 ` Louis Tribble
1996-06-21  0:00 ` The Amorphous Mass
1996-06-23  0:00   ` mfinney
1996-06-23  0:00     ` Robert Dewar
1996-06-26  0:00       ` mfinney
1996-06-23  0:00   ` Robert Dewar
1996-06-27  0:00     ` Adam Beneschan
1996-06-28  0:00       ` Peter Hermann
1996-06-28  0:00         ` Robert Dewar
1996-07-02  0:00           ` John McCabe
1996-06-28  0:00         ` John McCabe
1996-06-28  0:00         ` Robert A Duff
1996-06-29  0:00           ` Samuel Mize
1996-06-29  0:00             ` Robert Dewar
1996-07-04  0:00               ` Dan Evens
1996-07-04  0:00               ` Peter Hermann
1996-07-04  0:00                 ` Robert Dewar
1996-07-05  0:00                   ` software engineering and the notion of authorship Fergus Henderson
1996-07-08  0:00                     ` Jakob Engblom
1996-07-08  0:00                       ` John Byerly
1996-07-08  0:00                       ` Fergus Henderson
1996-07-09  0:00                         ` Richard A. O'Keefe
1996-07-09  0:00                           ` Fergus Henderson
1996-07-11  0:00                           ` Paul Eggert
1996-07-08  0:00                       ` The Amorphous Mass
1996-07-08  0:00                         ` Robert Dewar
1996-07-08  0:00                     ` Peter Hermann
1996-07-15  0:00                     ` Ralph Silverman
1996-07-15  0:00                       ` Fergus Henderson
1996-07-17  0:00                       ` Robert Dewar
1996-07-19  0:00                         ` Mike Curtis
1996-07-05  0:00                   ` Language Choice and Coding style John McCabe
1996-07-04  0:00               ` John McCabe
1996-07-02  0:00             ` John McCabe
1996-07-02  0:00               ` Samuel Mize
1996-07-03  0:00                 ` John McCabe
1996-07-03  0:00                 ` Jeff Dege
1996-07-03  0:00                   ` Robert Dewar
1996-07-04  0:00                     ` John McCabe
1996-07-04  0:00                     ` Phil Howard
1996-07-04  0:00                       ` Peter Hermann
1996-07-06  0:00       ` Laurent Guerby
1996-07-19  0:00       ` software engineering and the notion of authorship Andrew Gierth
1996-06-27  0:00     ` Language Choice and Coding style The Amorphous Mass
1996-06-21  0:00 ` Robert Dewar
1996-06-24  0:00   ` Dr. John B. Matthews
1996-06-21  0:00 ` Giuliano Carlini
1996-06-21  0:00 ` David Weller
     [not found] ` <4qeu56$52r@news.interpath.net>
1996-06-23  0:00   ` Nasser Abbasi
1996-06-23  0:00 ` Darin Johnson
1996-06-24  0:00 ` Andreas Schoter
1996-06-24  0:00 ` John McCabe
1996-06-24  0:00   ` Adam Beneschan
1996-06-24  0:00   ` Peter Hermann
1996-07-01  0:00     ` Alan Brain
1996-07-02  0:00       ` John McCabe
1996-06-26  0:00   ` Nasser Abbasi
1996-06-26  0:00   ` Ian Ward
1996-06-24  0:00 ` Michael R. Hartwig
1996-06-24  0:00 ` Theodore E. Dennison
1996-06-29  0:00 ` Samuel Mize
1996-07-01  0:00   ` Richard A. O'Keefe [this message]
1996-07-02  0:00     ` Samuel Mize
1996-07-03  0:00       ` Robert Dewar
1996-07-08  0:00     ` ++           robin
1996-06-29  0:00 ` Rich Maggio
     [not found] ` <JSA.96Jun26141502@organon.com>
1996-07-01  0:00   ` Russel A Hill
1996-07-01  0:00     ` Robert Dewar
1996-07-08  0:00       ` Russel A Hill
1996-07-02  0:00     ` Richard A. O'Keefe
1996-07-02  0:00   ` Jon S Anthony
1996-07-03  0:00   ` Mark Eichin
1996-07-02  0:00 ` Nasser Abbasi
1996-07-03  0:00   ` steidl
1996-07-05  0:00     ` Samuel Mize
1996-07-06  0:00     ` N. L. Sizemore
1996-07-08  0:00       ` steidl
     [not found] <835824850.11044.0@assen.demon.co.uk>
1996-06-27  0:00 ` Ian Ward
1996-06-27  0:00   ` John McCabe
  -- strict thread matches above, loose matches on Subject: below --
1996-07-05  0:00 Robert C. Leif, Ph.D.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox