doc: remove snake_case consts for now
parent
bf7ab19d09
commit
7e55261c17
|
@ -960,11 +960,13 @@ println(blue)
|
||||||
|
|
||||||
Global variables are not allowed, so this can be really useful.
|
Global variables are not allowed, so this can be really useful.
|
||||||
|
|
||||||
|
<!--
|
||||||
When naming constants, snake_case must be used.
|
When naming constants, snake_case must be used.
|
||||||
Many people prefer all caps consts: `TOP_CITIES`. This wouldn't work
|
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.
|
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
|
They can represent complex structures, and this is used quite often since there
|
||||||
are no globals:
|
are no globals:
|
||||||
|
-->
|
||||||
|
|
||||||
```v
|
```v
|
||||||
println('Top cities: $TOP_CITIES.filter(.usa)')
|
println('Top cities: $TOP_CITIES.filter(.usa)')
|
||||||
|
|
Loading…
Reference in New Issue