|
I start all constants with C_, and make the name upper case.
It would be fun to compare conventions. I use lower case for compiler
reserved keywords (such as opcodes and BIFs) upper case for external
names (files, database fields, programs, etc.) and camel case for
internal names. Constants are a special case, I want to see that it's a
constant so I do all uppercase and additionally prefix it with C_.
Joe
Have we a list where we can post amusing pieces of code?
This one made me smile, though on another day I might have cried.
D gYes C 'Y'
then, if myfield = gYes, etc.
1. It has no sense.
2. Its written in English instead of French ( imagine seeing if myfield = gOui in YOUR code )
3. Isn't it standard to code constants in upper case? It is here.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.