Lisp-Stat / data-frame

Data frames for Common Lisp
https://lisp-stat.github.io/data-frame
Microsoft Public License
28 stars 4 forks source link

Rewrite print-object #2

Closed Symbolics closed 3 years ago

Symbolics commented 3 years ago

Currently print-object uses the common lisp pretty printer. This was an experiment by Tamas that, in retrospect, didn't work out so well. Rewrite this using cl-ascii-table. For extra points, add some R data frame functions, like head, tail, str and summary. Also see Pretty Printing Table Data in Common Lisp.

Symbolics commented 3 years ago

It turns out that using the pretty printer was the right decision. It allows tight integration into the overall lisp printing system. It is not easy to learn however, and I suspect that Tamas could not justify the time investment.

The data frame object has now been properly integrated into the printer system, and the print-object and pprint-dispatch-table updated. See pprint.lisp.