- The V Programming Language
V is very similar to Go If you know Go, you already know ≈80% of V Things V improves on Go: vlang io compare#go
- Getting Started With V | The V Programming Language
git clone https: github com vlang v cd v make # make bat on Windows V compiles itself really fast and requires no dependencies and libraries for self compilation For more information, see Installing V from source
- V Documentation - V Lang
Introduction V is a statically typed compiled programming language designed for building maintainable software It's similar to Go and its design has also been influenced by Oberon, Rust, Swift, Kotlin, and Python
- V Documentation - V Lang
https: github com vlang libsodium When should you translate C code and when should you simply call C code from V? If you have well-written, well-tested C code, then of course you can always simply call this C code from V Translating it to V gives you several advantages:
- The V Programming Language
— Centralized package manager: vpm vlang io (v install ) — Much simpler and less verbose testing, assert — Primitive types can have methods resulting in less verbose code: strings Replace(strings Replace(s, "a", "A", -1), "b", "B", -1) => s replace('a', 'A') replace('b', 'B')
- V Documentation - V Lang
An int value for example can be automatically promoted to f64 or i64 but not to u32 (u32 would mean loss of the sign for negative values) Promotion from int to f32, however, is currently done automatically (but can lead to precision loss for large values) Literals like 123 or 4 56 are treated in a special way They do not lead to type promotions, however they default to int and f64
- V Documentation - V Lang
Getting started You can let V automatically set up the bare-bones structure of a project for you by using any of the following commands in a terminal:
- V Playground: Run, Edit, Share V Code Online
Place where you can run, edit and share V code online
|