Naming convention

Language provides a lot of freedom for users in terms of syntax. For example, the letter case of keywords does not matter. There are also no restrictions related to indentation. After all, it is recommended to follow several rules suggested by the creator.


File name

Files with Perun2 scripts have extension .peru. This extension is forced upon users, as others will not be accepted by the interpreter. On the other hand, file names are not restricted. It is recommended to start every local script file name with an underscore (for example: _selectMp3.peru). This convention makes these files stand out from others. If a directory is sorted by the name, then Perun2 scripts appear before other files.

Indentation

It is recommended to use two spaces. This rule applies both to curly bracket structures (like loops) and filters starting with new lines.

Case size

CamelCase seems to be the most readable notation and it is recommended to use it wherever it is possible for variable and function names.