About examples used in the book
Good examples live at the heart of our book, so it's worth thinking hard about it.
At the initial brainstorming meeting we agreed that the JSON::Tiny module would make a good example (which doesn't imply we'll actually use it). Here's why:
- it solves a real world problem, and it solves it (nearly) completely
- it's short enough to comfortably fit into a book
- it uses fairly idiomatic Perl 6 without overdoing it
- it uses some nice features (grammars, action methods, multi dispatch)
Our examples should fulfill as many of these criteria as possible.
In particular we don't want the usual Mammal examples for inheritance,
bar() as names (though
pubs are fine).