I think your presentation of the library (the README) could be improved by including the implementation instead of merely saying:
How? With a tagging function.
[…]
Tags are implemented by setting the __call metamethod on a table.
Sure, some people will click the source code and have a look themselves, but probably less than 10%. Given that the implementation is only 12 lines of code, I think it’s a missed opportunity to inform people about the features of Lua that enable such a neat trick!
Those interested in Lua + ADTs might find LunarML, a Standard ML to Lua (& JavaScript) compiler, of interest.
I think your presentation of the library (the README) could be improved by including the implementation instead of merely saying:
Sure, some people will click the source code and have a look themselves, but probably less than 10%. Given that the implementation is only 12 lines of code, I think it’s a missed opportunity to inform people about the features of Lua that enable such a neat trick!
You’re right :) Thanks, fixed.