diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-17 00:10:30 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-17 00:10:30 +0000 |
| commit | ea160abc678e9578b5e140121a6d7c59a3b9dd06 (patch) | |
| tree | 0ae4d0ed1449f74d6cc361a5f8787892c0789168 /README.md | |
| parent | a5d5a97818fb4fbd26c4fb25a5c410b1a60a1b18 (diff) | |
Improved struct pointer codegen, template instantiation and docs...
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -154,6 +154,13 @@ union Data { i: int; f: float; } + +#### Type Aliases +Create a new name for an existing type. +```zc +alias ID = int; +alias PointMap = Map<string, Point>; +``` ``` ### 4. Functions & Lambdas @@ -378,6 +385,12 @@ struct Box<T> { fn identity<T>(val: T) -> T { return val; } + +// Multi-parameter Generics +struct Pair<K, V> { + key: K; + value: V; +} ``` ### 11. Concurrency (Async/Await) |
