forked from leafo/moonscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtodo
More file actions
56 lines (31 loc) · 1.2 KB
/
todo
File metadata and controls
56 lines (31 loc) · 1.2 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# TODO
- or= and=
- move stuff out of format that should be in types
- a do block for making a quick anon func and calling it
- error with stray comma at end of line
- ugly error if attempting to assign to rvalue like #hello
- dump node in mark, see why values are being parsed multiple times
if hello else world
-> if hello then hello else world
- varargs that get put in a nested generated function aren't valid anymore:
- class expressions, x = class extends Hello do new: => print "hello"
* multiline comments
* table slices (almost)
* add continue keyword (ouch)
* combine for and if line decorators
* elseif with value that inserts lines
- need to decompose elif into if inside else
* export could also be used like so:
export a = -> "hello"
or
x = 232
export x
* allow return anywhere in block
* upercase constants and capital letter variables should automatically be exported (in the global scope?)
* any/every keywords for comprehensions? (what about iterators)
not working right:
double_args = (...) ->
[x * 2 for x in *{...}]
still some issues with whitespace at end of line
* let array items in table be defined without {} when indented
* key,value table comprehensions with { }