DISCUSSION: Naming conventions (for C code)

Jose Pereira (pereira@flausina.inesc.pt)
Fri, 4 Jun 93 14:06:51 +0200

It sounds a Good & Sensible Thing. I would only make a suggestion:

Instead of:
> Global variables are named using similar conventions, e.g.
>
> PyType_List
> Py_ZeroDivisionError

I would say:

PyType_list
Py_zeroDivisionError

That is, to make a distinction between function names and variables by
starting these with a lower case letter.

It's not that important, but helps a little when you are using a
debugger and want a quick visual check of a particular global name.

--

---------------------------------------------------------------------- Jose' Pereira

INESC (Inst. Eng. Sistemas e Computadores) R. Alves Redol 9, 6. 1000 Lisboa, PORTUGAL. Phone.: +351 1 3100225 Fax...: +351 1 525843 e-mail: jmp@inesc.pt PSI...: %(0268)004010314::inesc::jmp