gudzpoz / luajava

Lua for Java on Windows, Mac OS X, Linux, Android. 5.1, 5.2, 5.3, 5.4, LuaJ or LuaJIT.
https://gudzpoz.github.io/luajava/
Other
151 stars 19 forks source link

API Redesign #169

Closed gudzpoz closed 4 months ago

gudzpoz commented 5 months ago

Is your feature request related to a problem? Please describe.

Inspired by #168.

The current API can be rather alien to users unfamiliar with Lua C API. Moreover, using stack-based Lua API can be tedious and full of boilerplates. Maybe it is time for an API redesign now.

Describe the solution you'd like

Main idea:

Improvements:

(The list below can be outdated. The planned improvements are now being tracked at the corresponding PR.)

Describe alternatives you've considered

Alternatively, we may also use another class for the new API. But it is not that straight forward and can be a medium if not huge breaking change.