I present here an application of the Hungarian notation for languages using Lisp-style syntax.

Instead of studly caps, e.g. strName, we use lower-case variable names with a components separated by a hyphen, e.g. str-name. Each variable has a prefix that depends on its type. Here are the prefixes for primitive types:

 * symbol: s
 * string: str
 * boolean: b
 * integer: i
 * real: r
 * character: ch

Pairs are prefixed by p, lists by l and vectors by v. These prefixes can be combined with other prefixes: e.g. a list of symbols may be named as l-s and a vector of reals as v-r.

For an object type, the name of the type without brackets is used as a prefix. E.g. window-main for an object of type <gtk-window>.

Procedures having no side effects and having boolean return value are suffixed by ?.

     - Tommi Höynälänmaa

--
Kotisivu / Homepage:http://www.iki.fi/tohoyn/
Sähköposti / E-Mail:tommi.hoynalan...@iki.fi
GPG-sormenjälki / GPG fingerprint:
55F4 2477 7155 3528 5CB2 2B7A BB86 1FDE 4046 0F83
FT, Debian-ylläpitäjä / PhD, Debian Maintainer

Reply via email to