Coding standard: Prefixing variables to indicate datatype
simonb at webone.com.au
Thu Jan 16 10:21:59 CET 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,
More information about the Python-list