I would also prefer a Lua-like syntax, and I suggest the following
modifications to the original proposal:
* Count the sequence elements via `ipairs()`, but only display N of
them in case there are more than that (maybe some from the sequence end,
the rest starting at index 1)
* Then print at most N values using `pairs()` but skip integer keys
between 1 and the sequence end determined above.
* Write out a marker (e.g. `...`) unless you display all elements.
* Make N a global variable so that you can change the number of
displayed elements in case the default is not good enough.
* Abbreviate long keys/values, escape non-printable characters ;-).
* Try to fit multiple key-value pairs on a single line, but wrap
around at say 80 characters.
* Respect `__tostring`, but indicate original type.