Closed jakobjpeters closed 10 months ago
Hi!
Thanks! This approach was used initially, but it was leading to a HUGE time to print the first table. It seems a good time to revisit the problem and check if things were improved.
Seems ok! The errors are not related to this PR and there are only a slight increase in TPFT (less than 0.01s).
As a package author depending on
PrettyTables
, I want to define a method for two custom types. MethodA
transformsa
into data thatPrettyTables
can use and callspretty_table
. MethodB
transformsb
into anA
and calls methodA
.However, if I want
io
to default tostdout
, I currently need to to write the following methods:With this PR, those two methods are no longer necessary. This reduces code repetition and makes overloading
pretty_table
easier.