1
0
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:
Alexander Medvednikov 2020-05-21 16:34:57 +02:00 committed by GitHub
parent bf7ab19d09
commit 7e55261c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)')