blob: 5d2b525b8c1dd3c30dfaeeaf9d87a73e326a7ad3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Avoiding `none` far at the right hand side:
# Instead of writing:
if longlonglongstuff == none
if longlonglongstuff != none
# Maybe write this:
if unset longlonglongstuff
if set longlonglongstuff
# Similarly for 0
if zero longlonglongstuff
if nonzero longlonglongstuff
Named function arguments:
# These probably cannot use `=`, but `:` should work:
init_list value:123, count:100
Pass-and-assign syntax?
a = dostuff a
# maybe allow it to be passed as a var-parameter
dostuff a!
# or have some dedicated syntax?
a! dostuff
# or use `given`
given a = somelongvariable
a = dostuff a
|