[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Literal mimicking of C APIs in Lua (split from Re: [ANN] luaposix 33.3.0 released)
- From: "Pierre Chapuis" <catwell@...>
- Date: Sun, 1 Mar 2015 11:27:57 +0100
> So when I write bindings, I tend to split them into a 'low level' and a
> 'high level'. I believe this is pretty common.
Same here. The advantages of doing this are less code (Lua code is usually
shorter than C code using the API) and greater hackability from the Lua
side.
In the case of POSIX, moreover, I think staying close to C is a good
choice. It lets Lua users easily leverage all the existing documentation
about POSIX.
--
Pierre Chapuis