I am implementing a metatable in C with Lua's C API. I wonder whether the __newindex method should report success or failure by returning a value, or if this should be handled by using errors.
It seems that in the context of __index with return 0 indicates a failure to look up a value, I wonder whether there is a similar construct in __newindex that avoids ignoring or manual error throwing