From f7a77f4041eec81c9901ed0a06392e58f6a9a252 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 14 Sep 2020 16:06:32 +0200 Subject: [PATCH] doc: document snake_case/PascalCase requirement --- doc/docs.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/docs.md b/doc/docs.md index d93aeb7c6d..96dfbb0d45 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -238,6 +238,9 @@ Unlike most other languages, V only allows defining variables in functions. Global (module level) variables are not allowed. There's no global state in V (see [Pure functions by default](#pure-functions-by-default) for details). +For consistency across different code bases, all variable and function names +must use the `snake_case` style, as opposed to type names, which must use `PascalCase`. + ### Mutable variables ```v