mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
doc: remove snake_case consts for now
This commit is contained in:
parent
bf7ab19d09
commit
7e55261c17
@ -960,11 +960,13 @@ println(blue)
|
||||
|
||||
Global variables are not allowed, so this can be really useful.
|
||||
|
||||
<!--
|
||||
When naming constants, snake_case must be used.
|
||||
Many people prefer all caps consts: `TOP_CITIES`. This wouldn't work
|
||||
well in V, because consts are a lot more powerful than in other languages.
|
||||
They can represent complex structures, and this is used quite often since there
|
||||
are no globals:
|
||||
-->
|
||||
|
||||
```v
|
||||
println('Top cities: $TOP_CITIES.filter(.usa)')
|
||||
|
Loading…
Reference in New Issue
Block a user