[Lemon-devel] Renaming basic classes
Alpár Jüttner
alpar at cs.elte.hu
Mon Sep 10 12:26:04 CEST 2007
> > uEdge...() => edge...()
> > aNode...() => anode...()
> > bNode...() => bnode...()
> This does not conform to our coding style, does it?
As far as I see, coding style is quite clear here: in case of function
names, all but the first words should be capitalized (even if a word is
an abbreviation). Thus the question is whether 'anode' is one word or
two. If it is considered one word, then the correct writing is Anode for
the class, and anode() for the function. If it is considered two words,
they should be ANode and aNode(), respecively.
In fact, the best would be to avoid all of this kind of typenames. With
the new notations, 'ugraph' seems to be ceasing, so the only problematic
names are 'anode' and 'bnode'. Can't we find something better for these?
I still like the idea of calling them 'boy' and 'girl'.
Alpar
More information about the Lemon-devel
mailing list