Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Proplists: The Elegant Simplicity of Named Chaos

In Which We Discover That Sometimes the Old Ways Are Best (Or At Least Good Enough)

Before maps arrived with their sophisticated ordering semantics and their first-class citizenship, before records donned their tuple disguises and fooled precisely nobody, there existed proplists—property lists—which are to data structures what duct tape is to spacecraft repair: inelegant, occasionally questionable, but remarkably effective when you need something that simply works.

A proplist is, at its heart, a deeply philosophical statement about pragmatism. It’s an ordinary list—nothing fancy, no special VM support, no compiler magic—containing entries that are either tuples (whose first elements serve as keys) or atoms (which work as shorthand for {Atom, true}). Other terms are allowed to lurk in these lists like uninvited guests at a garden party, but the proplists module regards them with the dignified indifference of a butler who has seen everything and judges nothing.

The beauty of proplists lies not in their sophistication but in their simplicity. They are the linguistic equivalent of pointing at things and saying “that one.” Sometimes that’s all you need.