[Oberon] Identifiers and Capitalization
jan verhoeven
jan at verhoeven272.nl
Tue Mar 14 23:41:06 CET 2006
Op Tuesday 14 March 2006 23:26 schreef John Drake:
> --- Thomas Frey <thomas.frey at alumni.ethz.ch> wrote:
> > For the newer Modules in Native Oberon and
> > especially in Bluebottle,
> > normally the following convention was used:
> >
> > Constant/Static "things" start capital. I.E.
> > Modules, Types,
> > Constants, Procedures.
> > Variables start small : Variables, Fields,
> > Parameters
> >
> > Variables used as Constants because there is no
> > static way for
> > initialization in the Language (Records/Arrays) are
> > used
> > inconsistently upper/lower case.
> >
> > --Thomas
>
> Well the original convention avoided that
> problem since variables and constants were
> treated the same. (They start with lower
> case). Perhaps this problem was the reason
> for that convention?
Originally, there wasn't a problem since my friend Wirth wanted to keep
modules small and comprehensible. In a 1000 line module, you just know
what's going on.
Keep it small and simple. Otherwise: go code in Qt and C++.
If the program is too big, the analysis of the problem was wrong, one
bright mind once remarked.
--
Met vriendelijke groeten
Jan Verhoeven
http://fruttenboel.verhoeven272.nl
More information about the Oberon
mailing list