deferred defaulting typing

This commit is contained in:
2026-06-26 18:00:01 +02:00
parent f9ea044169
commit 77d4c1d494
3 changed files with 189 additions and 22 deletions
+4 -4
View File
@@ -242,7 +242,10 @@
c :: b + 3 # c is constrained to `i32`
```
16. add slice-by-range
16. for if statements, allow `if (cond) one-line statement` or `if some_func(some_arg) one-line statement` (instead of forcing either `if (cond) { block }` or `if cond { block }`)
- if statements without a bracketed body must wrap the condition in parentheses UNLESS it's a function call
17. add slice-by-range
- allow the use of a range in slice expressions:
```
excl_range range :: 0..10
@@ -252,9 +255,6 @@
some_arr[incl_range] # slice by named inclusive range
```
17. for if statements, allow `if (cond) one-line statement` (instead of forcing either `if (cond) { block }` or `if cond { block }`)
- if statements without a bracketed body must wrap the condition in parentheses UNLESS it's a function call
18. add `defer` statement (inspired by zig)
19. multi-line strings (see below)