Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site mcvax.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!guido From: guido@mcvax.UUCP (Guido van Rossum) Newsgroups: net.lang.c Subject: Re: Case distinction in var names Message-ID: <6170@mcvax.UUCP> Date: Sun, 11-Nov-84 18:53:45 EST Article-I.D.: mcvax.6170 Posted: Sun Nov 11 18:53:45 1984 Date-Received: Tue, 13-Nov-84 01:21:43 EST References: <4044@decwrl.UUCP> <9500013@iuvax.UUCP> <6164@mcvax.UUCP> <217@turing.UUCP> <455@uwmacc.UUCP> Reply-To: guido@mcvax.UUCP (Guido van Rossum) Organization: "Stamp Out BASIC" Committee, CWI, Amsterdam Lines: 24 Summary: In article <455@uwmacc.UUCP> rick@maccunix.UUCP (Rick Keir) writes: >Fine: you give me a program that is 32,000 lines long and uses capitalization >as a way of distinguishing variables and try and maintain it! > Given the wealth of information concerning the difficulty of programmers >making distinctions between similarly spelled variable, why do language >designers insist on giving us these damn case-sensitive languages, which >make it even more difficult to distinguish variables than before? All the flames about case-sensitivity seem to assume that programmers randomly use variables Foo, fOo, FOO and foo. This would surely be antiproductive (when the variables have overlapping scopes). But in actual programming, case is mostly used to flag different types of identifiers: since the "dark ages" of unix, FOO used to be a macro (manifest constant) or typedef, and foo a variable of function. There are other, similar conventions that greatly HELP the programmer by hinting about certain properties of identifiers: Gosling's Emacs uses FooBar for external Functions. -- Guido van Rossum, "Stamp Out BASIC" Committee, CWI, Amsterdam, Holland guido@mcvax.UUCP "Life is like a sewer. What you get out of it, depends on what you put into it."