Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Add max depth param to table echo

Open sprunk opened this issue 9 months ago • 0 comments

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).

sprunk avatar May 18 '24 15:05 sprunk