Parrot Magic Cookies (PMCs).
- Four types of registers in Parrot (SNIP)
- native types are small, fast (JITable) and dumb.
- PMCs are ❝smart❞
- PMCs
- some data, and lots of functions.
- conversion to other types (string, int, num)
- keyed access for arrays, hashes.
- Many builtin Parrot PMCs. (String, Array, ResizableArray, Iterator, …)
With so many choices, never have to build your own!