Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
From: Frank Heckenbach
Subject: Upper/lower case in identifiers
Date: 11 Sep 2004, 20:02:15
Waldek Hebisch wrote: > Frank Heckenbach wrote: > > Waldek Hebisch wrote: > > > > > the spelling. It is natural to take scope rules into account when > > > warning about capitalization, but that requires extra work. > > > > It may be natural for some. I actually prefer it the way it is, i.e. > > I prefer to use the same spelling (capitalization) throughout. So if > > you or someone else implements the other way (which is indeed more > > work), it should at least be optional. > > I belive that capitalization is meaningfull for people. I don't really. In natural language, capitalization is used as a help in reading (used differently in different languages), but it does not carry meaning itself (e.g., a text written in all-caps still has the same meaning). In my experience, variations in capitalization in Pascal code arise mostly in the following cases: - Typos -- good when warned - Less strict used of capitalization (e.g., parts of the code having all-lowercase identifiers) -- also good when warned (if you care about capitalization at all, otherwise turn off the warning anyway). - Different arbitrary choices (e.g. `DOS' (acronym) vs. `Dos' (everyday way)). Still it doesn't really carry meaning. - Short identifiers such as `x' vs. `X'. These names are not actually meaningful anyway. > So it is > natural that different meanings needs different capitalizations. Of > course, some persons may wish warning for re-using an identifier > with different meaning (or as compromise, a warning when meaning > is different enough to require different capitalization :)). But > IMHO the main use of `-Widentifier-case' is to ensure that standard > (case insensitive) interpretation coincides with case sensitive > one. Which case-sensitive one? It's Pascal code, and Pacal is case-insensitive. If you mean translating Pascal code to C or another case-sensitive language, this may become an issue, but certainly one of the least ones. Frank
Previous mail
Next mail
Unformatted/full headers
Overview 10 days
Subject
Date
Thread
Author
| Author | Subject | Date |
|---|---|---|
| Waldek Hebisch | Upper/lower case in identifiers | 11 Sep 2004, 18:01:27 |
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).