Boomla language docs
Var declarations
+
Overview
Types
Nil type
Boolean type
Numeric types
String type
Array type
Map type
Struct type
Function type
File type
Bucket type
Reference types
Box type
Expressions
Operators
Get expressions
Index expressions
Slice expressions
Grouping
Literals
Instantiations
Identifiers
Call expressions
Xml expressions
Function literals
As expressions
Statements
Import statement
Type declarations
Var declarations
Function declarations
Method declarations
Assign statement
If statement
For statement
Assert statement
Return statement
Fail statement
Panic statement
Yield statement
Break statement
Continue statement
Defer statement
IncDec statement
Expression statement
Block statement
Var declarations
A variable declaration creates an initial value for a type and binds it to an identifier.
Either the type or the initial values must be provided, optionally both. If the type is not specified, it is inferred from the initial values.
fn main() { var a string var b string = "B" var c = "C" d := "D" println(a) println(b) println(c) println(d) }
Run