summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-17 00:10:30 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-17 00:10:30 +0000
commitea160abc678e9578b5e140121a6d7c59a3b9dd06 (patch)
tree0ae4d0ed1449f74d6cc361a5f8787892c0789168 /README.md
parenta5d5a97818fb4fbd26c4fb25a5c410b1a60a1b18 (diff)
Improved struct pointer codegen, template instantiation and docs...
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4181108..c36cb56 100644
--- a/README.md
+++ b/README.md
@@ -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)