Skip to content

Commit

Permalink
explain .gist
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 19, 2012
1 parent 4a4e9ef commit 21e6fa9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/tablet-2-basic-syntax.txt
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,15 @@ This works with data of any nesting depth.
gist
----

xxx
The `.gist` method returns a summary of an object intended to be read
by humans. For many types it carries more information than plain string
conversion with `.Str`. Most notably, `.gist` on a type object returns
the name of the type object followed by `()` to indicate emptiness.

Notably the `say` function uses the `.gist` to convert its arguments
to strings.

say Int; # prints Int()\n


fmt
Expand Down

0 comments on commit 21e6fa9

Please sign in to comment.