tarantool / tarantool/doc

[2pt] Document new Lua style rule about exceptions

Open
#1,727 3 comments 0 reactions 1 assignee View on GitHub

@Mons is already working on this.

Since Dec 23, 2020.

dev guidelines
Dominant language
CSS
Stars
15
Forks
49
Avg merge
1d 13h
Merged PRs (30d)
3

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.