Read This! | | Quick Links | Algorithms | AssemblyLanguage | BASH | C-Programmming | CommonLisp | Computer Security | Databases | Emacs | Exploitation | Functional Programming | Firewalls | Git | Haskell | Javascript | Julia | Social Engineering | Picolisp | Pharo Smalltalk | Linux | Python | Operating Systems | Machine Learning | Metasploit | Open Data Science | Networking | Machine Learning | Racket | Scheme | Unity | vim | V | Web Development | Windows WSL
The V Programming Language
Variable
Variable are immutable by defaultx:= 100use the mut keyword to make it mutable.
Naming Convetions
- start with lower case
- no uppercase alphabet
- no special chars except _
- names can end in numbers or _
- use snake_case
Parallel Declaration and Assignment
a, b, c := 1, 2 3 mut d, mut e := "hello" , "hi"reassign with the same type only:
d, e = "what" , "who"
25aug22 | admin |