Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Grant Jacobs
Subject: Upper/lower case in identifiers
Date: 12 Sep 2004, 15:53:39
> > - 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. 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. Grant
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Frank Heckenbach | Upper/lower case in identifiers | 12 Sep 2004, 15:01:19 |
| Author | Subject | Date |
|---|---|---|
| Waldek Hebisch | Upper/lower case in identifiers | 11 Sep 2004, 23:43:35 |
| Frank Heckenbach | Upper/lower case in identifiers | 12 Sep 2004, 00:20:57 |
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).