Factor/Coding Style

Source files

Tabs are not allowed in Factor source files; use four spaces instead.

Try to limit lines to 64 characters, except for documentation, which can be any length.

Short definitions can be on one line, while longer ones should be split up over several lines.

Words definitions should fit on one to three lines if possible, with the exception of words that use case and cond or literals. If the words are aptly named and definitions kept short, your code will be mostly self-documenting.

Instead of excessively long comments, favor readable word names and use the Help system for longer explanations of how words work.


Factor words should be named-with-dashes instead_of_underscores or CamelCase.

This revision created on Tue, 9 Sep 2008 05:13:50 by erg