q66 / cffi-lua

A portable C FFI for Lua 5.1+
MIT License
176 stars 24 forks source link

[Question] C++14 vs ANSI C #42

Closed joaopauloalbq closed 10 months ago

joaopauloalbq commented 10 months ago

First of all, thank you very much for the library, it's awesome!

Any reason to implement it using C++14 instead of ANSI C like the Lua language?

q66 commented 10 months ago

why does it matter what lua is implemented in? what would be the benefit of using an ancient version of C? C++ is far more convenient and allows for code with fewer bugs and a degree of memory safety (and realistically any target worth supporting in the module has a sufficiently good compiler available)