kikito / inspect.lua

Human-readable representation of Lua tables
https://github.com/kikito/inspect.lua
MIT License
1.38k stars 196 forks source link

Non-repeated tables should not get a number #2

Closed kikito closed 12 years ago

kikito commented 12 years ago

Table numbering is a useful feature if tables get repeated at least once. However, most tables are not. Nevertheless, their table numbers are printed out, cluttering the output.

It would be nice if only the repeated tables got a number.

– You know what this means, right? – Yup, it means I need to parse tables twice. Once to "count the repetitions" and assign numbers to tables, and a second time to actually generate the output, using those numbers. – Exactly. Are you up to it? – Certainly. But let me finish up my i18n stuff first, and then I'll get back to you. – You such a cool guy. Having conversations with yourself in your tracker and all. – Thanks. You are not bad yourself.