moonscript/todo
2012-10-30 09:25:23 -07:00

41 lines
829 B
Plaintext

# TODO
-- seems like running in moon messes up require order
- don't reuse _, put a local on it, so we don't keep around trash
-- swithc X with Func
- or= and=
- 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
- class expressions, x = class extends Hello do new: => print "hello"
* multiline comments
* table slices (almost)
* combine for and if line decorators
* export later?
x = 232
export x
* allow return anywhere in block
* any/every keywords for comprehensions? (what about iterators)
* let array items in table be defined without {} when indented (no, too similar to arguments)
-- for searching? for returning to accumulator early?
x = for thing in *things
if is_important thing
break thing