Skip to content

[2pt] Document new Lua style rule about exceptions #1727

Open
@Gerold103

Description

@Gerold103

Audience/target: Tarantool developers
Root document: https://www.tarantool.io/en/doc/latest/dev_guide/lua_style_guide/


@Mons has decided, that all Lua functions should now throw errors instead of returning them as nil, err like before. On the other hand, he says this is only for Tarantool functions. Not for module functions.

That does not affect any of the existing functions, and is only a rule for the new ones. Must be added to Lua style guide.

I don't know motivation behind this though. Suggest to ask @Mons.

Metadata

Metadata

Assignees

Labels

devTo be updated by the developers. Includes developer guidelines and many API elements.guidelines

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions