* Finnish notation
@ 2024-11-27 15:34 Tommi Höynälänmaa
0 siblings, 0 replies; only message in thread
From: Tommi Höynälänmaa @ 2024-11-27 15:34 UTC (permalink / raw)
To: guile-user
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.hoynalanmaa@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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-11-27 15:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-27 15:34 Finnish notation Tommi Höynälänmaa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).