In general our code follows the GNU Coding Standards (see GNU Coding Standards). However, they do not say much about Scheme, so here are some additional rules.
Scheme code in Mes is written in a purely functional style.
When writing Scheme code, we follow common wisdom among Scheme programmers. In general, we follow the Riastradh’s Lisp Style Rules. This document happens to describe the conventions mostly used in Guile’s code too. It is very thoughtful and well written, so please do read it.
If you do not use Emacs, please make sure to let your editor knows these rules.
Additionally, in Mes we prefer to format
if statements like this
(if foo? trivial-then (let ((bar (the-longer …))) more-complicated … else))