deferred defaulting typing
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user