The Mediator of Snobol
A central crystal ball directing the flow of arcane energies.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Mediator
ARCANUM SCHOOL: Divination // Networking
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// SNOBOL PATTERN //
* Mediator Pattern in SNOBOL4
DEFINE('MEDIATE(SENDER, MSG)')
MEDIATE('Warlock', 'Summon')
MEDIATE('Cleric', 'Heal')
:(END)
MEDIATE
IDENT(SENDER, 'Warlock') :S(HANDLE_W)
IDENT(SENDER, 'Cleric') :S(HANDLE_C)
:(RETURN)
HANDLE_W
OUTPUT = 'Mediator routes Dark Energy for ' MSG :(RETURN)
HANDLE_C
OUTPUT = 'Mediator routes Light Energy for ' MSG :(RETURN)
END
Rather than having entities communicate directly in chaotic cross-currents, the Mediator acts as a central hub—a crystal ball that interprets and routes all spells to their proper ethereal planes.
Runic Tags:
#snobol
#behavioral
#mediator