Talk:Olympus
Jump to navigation
Jump to search
Commands
Mnemosyne
is the mistress of memory. Anything dealing with assignment or declaring new variables goes to her.(Variable assignment)Hades
collects the souls of abandoned variables. All variables in Olympus that have mutability (the non-eternals) and primitives must be freed at the end. It is customary (and a good safeguard) to call on Hades to free all variables at the end of a program.(Delete all variables)Zeus
andAthena
are the strategists. They deal with the structure of code. Since they are called on quite a lot, the programmer has two to call on. Athena needs less praise than Zeus, she is less egotistical. They are equally powerful.(Structure)Artemis
andDemeter
, who rule over the cycles of nature, are the masters of looping structures and repetition. Loops—for
orwhile
—are theirs. Functional calls that are loop over a list (e.g.map
/reduce
) also go to them.(Looping code)Ariadne
, mistress of the labyrinth and the serpent, deals with branching structures. That isif
,case
,break
, and the calling of a function.(Conditionals, break out from loop, call function)Hermes
, the bringer of dreams, is responsible for all random numbers. He is also the messenger of the gods, and deals with input and output. Like Ariadne, Hermes can make calls to functions.(Call functions, input, output)Aphrodite
, the goddess of desire and love, deals with currying. She helps a function spawn a child function (through currying). She also helps transform from the ideal plane into the physical world: any text can itself become code through her (eval).(Evaluate string as code)