[tarantool-patches] Re: [PATCH v2 1/2] lua: new function luaT_return_error()

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Wed Jul 31 18:40:58 MSK 2019



On 31/07/2019 17:23, Alexander Turenko wrote:
>> +/**
>> + * Return nil as the first return value and an error as the
>> + * second. The error is received using box_error_last().
>> + *
>> + * @param L Lua stack.
>> + */
>> +LUA_API int
>> +luaT_return_error(lua_State *L);
> 
> Maybe let the name be a bit more explicit, say,
> luaT_push_conventional_error(struct lua_State *L)?
> 

Please, no. You work too much with Java. The name
is too long. Maybe luaT_push_nil_err()?




More information about the Tarantool-patches mailing list