mmdblua icon indicating copy to clipboard operation
mmdblua copied to clipboard

Support `safe` mode

Open moteus opened this issue 9 years ago • 2 comments

I prefer if function returns error instead raise Lua errors. E.g. if i get info from untrasted source I want return either info or error message. Now I have to use pcall for such thing. I like way how it was implemented in cjson library. It just provide 2 module cjson and cjson.safe.

moteus avatar Dec 27 '16 15:12 moteus

I agree. Happy to add functions that return nil, err, errno and keep old constructor for compatibility

daurnimator avatar Dec 27 '16 15:12 daurnimator

Let me know what you think of #10. Pick me some better function names if you can :)

daurnimator avatar Dec 28 '16 00:12 daurnimator