Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Can your REPL do this?. Parent comment
http://clhs.lisp.se/Body/f_pr_obj.htm
So say you have a object type FOO, you can do this:
(defmethod print-object ((obj FOO) stream) ...)
Obviously it doesn't provide a drilldown approach and any number of nifty and useful functions.
There are no comments on this comment yet.
http://clhs.lisp.se/Body/f_pr_obj.htm
So say you have a object type FOO, you can do this:
Now, when you have a FOO on the repl, print-object will be called.Obviously it doesn't provide a drilldown approach and any number of nifty and useful functions.