The Proxy of the Ancestral Monad
Providing a pure surrogate to control access to a deeper aspect of the Ancestral Monad.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Proxy
ARCANUM SCHOOL: Transmutation // Ancestral Monad
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// MIRANDA PATTERN //
|| Proxy delays evaluation via Miranda's inherent laziness.
real_subject :: num -> string
real_subject x = "Expensive computation of " ++ show (x ^ 10)
proxy :: num -> string
proxy x = if x < 0
then "Access Denied by Ancestral Monad"
else real_subject x
Runic Tags:
#miranda
#structural
#proxy
#ancestral-monad