Closed hahawoo closed 4 years ago
How about turning this into a more complete module which offers callbacks the user can hook into?
That could be cool. I kind of feel like this issue is somewhat redundant now due to the auto-generated fields in love-api-experiments, because that makes it quite a bit easier to loop through whatever one wants to loop through, but I would think that a module with callbacks or functions could work too, maybe even better than auto-generating fields, but I haven't really thought about it.
I've added extra.lua to the main repo now, so I don't think skeleton code would be as useful now.
Sometimes I want to do something simple and small with love-api, and I had been wishing I could copy and paste some base code so I could change it to do I wanted instead of having to look at the table structure and write code to loop through everything.
So maybe it would be useful to add something like this to the README?
Here is what I have now: (not thoroughly tested!)
So if I wanted to, for example, print out the functions which return a single boolean and have one or more arguments, I can copy and paste the code above and just write this in the variant loop: