Subj : Re: How to name variables in a program? To : comp.programming From : akarl Date : Tue Aug 09 2005 12:50 pm Chris Sonnack wrote: > akarl writes: > >>The convention used in Oberon is the best one I've come across; Name >>spaces/modules use plural nouns and types use (corresponding) singular >>nouns. > > What happens with Property (or Mouse :-)? The mentioned convention makes sense for (general) data types (trees, hash tables etc.). The name "Property" without context says nothing, so it's probably not a good name for a data type. A module that handles the mouse can e.g. be called Input. If your program handles only one mouse and your programming language does not force you into object orientation (Oberon-2), you really don't need a mouse data type; You just let the module encapsulate the internals: MODULE Mouse; VAR x, y: INTEGER; (* mouse position *) ... END Mouse. August .