From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,66bc6b039f1e005d X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Three simple questions Date: 2000/10/14 Message-ID: <39E86313.8F3F5B8B@acm.org>#1/1 X-Deja-AN: 681371384 Content-Transfer-Encoding: 7bit References: <2BED68CA963D6D55.A78776F656DA0452.75A61ED22116F1B6@lp.airnews.net> <39E47BAC.8DB1AD0B@acm.org> X-Accept-Language: en X-Server-Date: 14 Oct 2000 13:44:35 GMT Content-Type: text/plain; charset=us-ascii Organization: Quadrus Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-10-14T13:44:35+00:00 List-Id: Point taken, but I think this may be a bit contrived. Even C programmers (unless they're trying to be "clever") are not likely to create a RollControl and a rollcontrol in the same context. What is far more likely to be the case is when you've got one of those "quickie" variables for a loop index or some logical test, etc, where you've got an "X" and an "x" that exist in the same context. It would still be hard to verbally discuss them, but it is more likely to be an accident than an intention. Now I could imagine this possibly being a problem *across* contexts - say if a member variable is defined in a C++ class one way and a local version is used in some function where the name is different by case. That may happen a bit more regularly and it certainly would be confusing to discuss "member variable RollControl" and "local variable rollcontrol". Another good reason to use Ada - packages, dotted notation, case-insensitivity,... It all adds up to more reliability. MDC Richard Kenner wrote: > In addition, as somebody pointed out in a subtle way, it makes it much > harder to have a verbal conversation about a program. If you have > RollControl, rollControl, Rollcontrol, and rollcontrol variables, all > meaning different things, when you try to discuss code that uses them > verbally, it becomes a very confusing conversation really quickly > because we don't have normal English mechanisms to distinguish case. > > Some would say this argues in favor of underscores not being > significant either, so you couldn't have a disinct Roll_Control > variable either, but "roll underscore control" sounds a lot smoother > than saying "each cycle we set the capital r roll capital c control > variable from the average of the lower-case r roll lower-case c > control, lower-case r roll capital c control, and capital r roll > lower-case c control variables"! -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "Giving money and power to Government is like giving whiskey and car keys to teenage boys." -- P. J. O'Rourke ======================================================================