Coding standard: Prefixing variables to indicate datatype

Simon Burton simonb at webone.com.au
Thu Jan 16 04:21:59 EST 2003


On Thu, 16 Jan 2003 10:04:55 +0100, Thomas Weholt wrote:

> In my day-job I use Delphi/Object Pascal. My firm has a coding-standard
> where we prefix all variables with a single character to indicate datatype;
> strings are prefixed with s, integers with i, floats with f etc. etc.
> 


I like to keep my namespaces so small that the prefix is all that's
needed, especially the standards like strings/ints/floats, but even my
lists are called just "l". dicts have more fancy names usually, tho. Wait
a minute, my c code is the same! gee.

thanks for asking,

Simon Burton.





More information about the Python-list mailing list