Add max depth param to table echo
Opened this issue · 0 comments
sprunk commented
And probably make it default to something large but finite like 10, to guard against recursion (tables can contain themselves). Alternatively leave it default infinite but keep a list of visited tables' locations and print quux = <recursive table foo.bar.baz>
, which would be more helpful but make the implementation much less elegant (though that sounds like a good tradeoff anyway given the utility of table echo).