3 : Why Maps?
Why use maps and not lists? Which are more standard/simpler/easier/etc.
- Maps are a more flexible data structure than lists which are typically used in functional languages, for example maps can easily represent lists but not vice versa.
- The environment is a map, using maps allows access to the environment to be easy.
- Maps can more naturally represent XML.
- Finally (perhaps most importantly), using maps is different. Their use poses both interesting problems and solutions.
MISC also support lists in syntax like '(1 2 3)
which is equivalent to '[1 [2 ]]