Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site wateng.UUCP Path: utzoo!watmath!wateng!padpowell From: padpowell@wateng.UUCP (PAD Powell) Newsgroups: net.lang.c Subject: Re: 6 char externs and the ANSI standard Message-ID: <1576@wateng.UUCP> Date: Tue, 23-Oct-84 11:22:33 EDT Article-I.D.: wateng.1576 Posted: Tue Oct 23 11:22:33 1984 Date-Received: Wed, 24-Oct-84 03:34:41 EDT References: <4095@tekecs.UUCP>, <4800003@hpcnoe.UUCP> Organization: U of Waterloo, Ontario Lines: 41 >From: dat@hpcnoe.UUCP (dat) >Subject: Re: 6 char externs and the ANSI standard > As far as case distinction, I think that it should be up >to the programmer to define a consistant standard. For example, >in ANY language, my constants are always all uppercase, and my >'junk' variables (like loop counters) are always in lowercase. > > ( ugly example inserted ) > Of course the converse argument also holds true; the more that >you limit a language, the less functional it becomes for 'real' tasks. >Look at Pascal for an example of this. Any version of Pascal that I >have ever done any significant programs on has always been a superset >of the original J&W Pascal. In fact here at HP we have a clone called >ModCal which is purported to be a cross between Modula-2 and Pascal!!! > > I would opt for the language ignoring case, though, since it is >easier conceptually for the programmer (the person who counts in the end >ANYWAY) to not worry about the case of a variable than to figure out >errors like; > scanf("%d",&i); /* <-- lower case i */ > printf("i = %d\n", I); /* <-- upper case i */ > > Dave (dAVE) Taylor (tAYLOR) > > > ARRRGGHHH! why not go all the way, and insist that all characters outside strings will be forced into lower case? ALA: Pascal/Fortran, etc. This has to be one of the most noxious things that I encounter, when porting code: you no longer have a WYSIWYG: What you see is What you get. Less CLUDGES. Less "intimate" knowledge. Upper case and lower case SHOULD BE DISTINGUISHED. By the way, I think that this should hold for external variables. ESPECIALLY for external variables. Patrick ("Yep, sure does look like FORTRAN") Powell