Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Frank Heckenbach
Subject: Upper/lower case in identifiers
Date: 12 Sep 2004, 15:01:19
Grant Jacobs wrote: > > > - conventions like: > >> globals capitalized, locals lowercase > >> or > >> agregates capitalized, scalars lowercase > > > >IMHO these are archaic conventions, coming from languages such as C > >(where there's only one global and one local level, in contrast to > >Pascal which has arbitrarily many levels, and a local variable of > >level 1 can behave like a global variable, seen from a routine at > >level 2, etc.), and assembler (where there's a general difference > >between aggregates and scalars). So I don't care much for such > >conventions. > > They might be archaic (and I think so too), but one thing I'd like > gpc to keep in mind is porting code to and from other languages. > Silly things like this can help porting. Another example might be the > use of leading underscores in identifiers; de facto std. in C for > internal variables in libraries. In Pascal there is no practical need > for these, but they are useful when shifting code to C or some other > language. All of these are warnings and can be turned off. I basically agree with your argument, that's why I also wouldn't like to turn the underscore warnings into errors (except in strict standard Pascal mode where it's prescribed). > I tend to program case-sensitive myself, partly habit and partly to > create one less problems if I have to shift the code to another > language. Me too, and the current warning does not hinder doing so (just enforces more case-sensitivity than a (declaration-wise) case-sensitive language would demand). Frank
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.
Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.
This page was created by Crystal 0.999 (Linux 2.4.27/i686).