mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: document snake_case/PascalCase requirement
This commit is contained in:
parent
b552c29bef
commit
f7a77f4041
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user