What's New
- Procedure Overloading
- All loops are
for
loops:for i := 0; i < 12; i+=1 {}
for cond {}
for {}
for val in 0..<12 {}
for val in 0..12 {}
for val, idx in 3..<12 {}
for _ in array {}
match type name in expr {}
cast(T)
transmute(T)
down_cast(T)
union_cast(T)
- Improved
fmt.printf
- Record fields separated by commas
struct { x: int, y: f32, z: int }
- Capacity removed slices. Slices are just ptr + count
- Helper type
type int
type proc(int) -> f32
- Prefixes:
immutable
using
thread_local
no_alias
- Library names - explicit library need for foreign procedures
- Basic directives:
#file
#line
#procedure