ZeroK-RTS / Zero-K

Open source RTS game running on the Spring/Recoil engine
https://zero-k.info
GNU General Public License v2.0
680 stars 204 forks source link

Add max depth param to table echo #5276

Open sprunk opened 4 months ago

sprunk commented 4 months ago

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