2 ms·
In a programming language that allows functions with multiple return values, error values of some sort become almost natural. In Lua, the idiom of returning "ni
by krylon 9y ago
In a programming language that allows functions with multiple return values, error values of some sort become almost natural. In Lua, the idiom of returning "nil, errormessage" on failure is very common, too.