doc: document snake_case/PascalCase requirement

pull/6369/head
Alexander Medvednikov 2020-09-14 16:06:32 +02:00 committed by GitHub
parent b552c29bef
commit f7a77f4041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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 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). (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 ### Mutable variables
```v ```v