Private words
Factor handbook » The language » Syntax » Parse-time word lookup

Prev:Syntax to control word lookup
Next:Resolution of ambiguous word names

Words which only serve as implementation detail should be defined in a private code block. Words in a private code blocks get defined in a vocabulary whose name is the name of the current vocabulary suffixed with .private. Privacy is not enforced by the system; private words can be called from other vocabularies, and from the listener. However, this should be avoided where possible.