Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!mentor.cc.purdue.edu!pur-ee!pur-phy!clt From: clt@pur-phy (Carrick Talmadge) Newsgroups: comp.lang.c Subject: Re: case sensitivity Message-ID: <2188@pur-phy> Date: 25 Apr 89 03:58:40 GMT References: <13159@dartvax.Dartmouth.EDU> <1989Apr21.194615.5344@utzoo.uucp> <10182@socslgw.csl.sony.JUNET> Reply-To: clt@newton.physics.purdue.edu.UUCP (Carrick Talmadge) Organization: Purdue Univ. Physics Dept., W. Lafayette, IN Lines: 26 In article <10182@socslgw.csl.sony.JUNET> diamond@csl.sony.junet (Norman Diamond) writes: > [...] it is silly to permit two distinct identifiers to differ only in case. Here is a real life example where I personally would want the case to be sensitive. Nobody in physics who reads this would have any problem with the notation, or would complain about readability problems arising from reusing the same variable name with upper and lower case. /* * Calculate gravitational acceleration of an oblate spheroid */ #include double G = 6.6726e-11; /* Newtonian constant of gravity (MKS units) */ double R = 6.3710159e6; /* mean radius of the Earth (meters) */ double J2 = 1.0826347e-3; /* quadrupole moment of the Earth. */ double g; /* acceleration of gravity (MKS units) */ double r; /* distance from CM of spheroid to satellite */ /* etc. */ Obligatory moralizing omitted... Carrick Talmadge ARPA: clt@physics.purdue.edu USENET: ...!pur-ee!pur-phy!clt BITNET: talmadge@purccvm.bitnet