summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-17 11:21:35 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-17 11:21:35 +0000
commit91e763a600afc86e9630e4db592d8108f65def16 (patch)
tree0e2178b729edcdb8e8278976f8d57998d653d1e3 /README.md
parent3704ce90083862680f7768916e1a40ddb85e833d (diff)
Remove immutability directive.
Diffstat (limited to 'README.md')
-rw-r--r--README.md14
1 files changed, 0 insertions, 14 deletions
diff --git a/README.md b/README.md
index c36cb56..98ab1e3 100644
--- a/README.md
+++ b/README.md
@@ -74,19 +74,6 @@ const PI = 3.14159; // Compile-time constant
var explicit: float = 1.0; // Explicit type
```
-#### Mutability
-By default, variables are mutable. You can enable **Immutable by Default** mode using a directive.
-
-```zc
-//> immutable-by-default
-
-var x = 10;
-// x = 20; // Error: x is immutable
-
-var mut y = 10;
-y = 20; // OK
-```
-
### 2. Primitive Types
| Type | C Equivalent | Description |
@@ -524,7 +511,6 @@ Zen C supports special comments at the top of your source file to configure the
| `//> pkg-config:` | `gtk+-3.0` | Run `pkg-config` and append `--cflags` and `--libs`. |
| `//> shell:` | `command` | Execute a shell command during the build. |
| `//> get:` | `http://url/file` | Download a file if specific file does not exist. |
-| `//> immutable-by-default` | None | Make variables immutable unless declared `mut`. |
#### Examples