rxi / lume

Lua functions geared towards gamedev
MIT License
995 stars 80 forks source link

Sort functions alphabetically #42

Open vladfaust opened 2 years ago

vladfaust commented 2 years ago

A passerby thought: list functions alphabetically in README.md, lume.lua and test/test.lua; and force the order for future development. Binary search is faster than the brute one. 🙂

jaythomas commented 2 years ago

One thing to keep in mind if someone does want to take on such a refactor, variables aren't hoisted in lua. The functions are all attached to the lume. namespace so they should be okay but variables in the closure and the order they are defined in should be approached with care. Other than that the unit tests should catch any issues.