The Usual
Vine has the usual complement of standard programming language features, including:
- integers:
1 + 2 * 3 - floats:
1.0 + 2.0 * 3.0 - booleans (including short-circuiting):
true and !(false or 1 == 2) - lists:
[1, 2, 3] ++ [4, 5, 6] - strings:
"12 + 34 = {12 + 34}" - tuples:
(1, 1.0, "abc"),(1, 2).0 - variables:
let x = 5; x += 1 -
if condition { ... } else { ... }while condition { ... }return valuebreak,continue
(Try some of these snippets in the vine repl!)
Many of Vine’s features are influenced by Rust, and it has a similar expression-oriented syntax, type system, and module system.