shengnoah / lua.ren

luaren
https://lua.ren
GNU General Public License v3.0
22 stars 2 forks source link

Lua错误处理 #19

Open shengnoah opened 1 year ago

shengnoah commented 1 year ago

https://lua.ren/lua_guide/error-handling/

LUA教程:Lua是一门精巧的语言,与其它语言配合使用,发挥更高的效能。特别是与C和C++语言的配合。著名的项目Openresty就是使用了Lua。

shengnoah commented 1 year ago

Lua是一个相对弱类型的语言,有时候出错异常的时候,提示的出错原因都类似,这种情况适当的运用异常处理机制,对于调试程序,还是很我帮助的。