[Oberon] FPGA - Naming Conventions

Jörg joerg.straube at iaeth.ch
Tue Apr 11 14:23:14 CEST 2017


Hi Tomas

There are no fixed rules for it. If there were, the compiler would enforce them :-)

However there are some rules of thumb: Wirthian languages Pascal, Modula-2 and Oberon generally use Capitalized or UpperCamelCase identifiers for programs, modules, constants, types and procedures, and lowercase or lowerCamelCase identifiers for math constants, variables, formal parameters and functions.

Jörg

> Am 11.04.2017 um 14:05 schrieb Tomas Kral <thomas.kral at email.cz>:
> 
> Hi,
> 
> Studying various ETH routines, I sometimes see Variable in capitals,
> sometimes lowercase.
> 
> Is there a coding style to follow, e.g. globals get capitals, local
> lowercase, constants, etc?
> 
> Many thanks
> Tomas
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20170411/a3518a8e/attachment.html>


More information about the Oberon mailing list