[Style] same names for same data in ADT implementations

This commit is contained in:
Matthias Felleisen 2012-06-17 22:15:32 -04:00 committed by Eli Barzilay
parent 13d9f63610
commit 634644b11a

View File

@ -282,7 +282,11 @@ Pick a rule for consistently naming your functions, classes, and
Pick a rule for consistently naming and ordering the parameters of your
functions and methods. Stick to it. For example, if your module implements
an abstract data type (ADT), all functions on the ADT should consume the
ADT-argument first or last.
ADT-argument first or last. Furthermore, if all of these functions accept
the same kind of information they should do so in the same position and
with the same name. See @filepath{collects/setup/scribble} and search for
occurrences of @racket[latex-dest]---they all refer to the same kind of
data.
@subsection{Sections and Sub-modules}