moonscript/todo

55 lines
1.1 KiB
Plaintext
Raw Normal View History

2011-07-04 16:20:46 +00:00
# TODO
..= append string
2011-07-16 17:31:12 +00:00
- varargs that get put in a nested generated function aren't valid anymore:
2011-07-10 18:09:34 +00:00
- cascading expressions in function call? this looks too much like line decorator
* maybe with assigns only
my_func if something
"one arg"
else
"other arg"
2011-07-16 17:31:12 +00:00
- class expressions, x = class extends Hello do new: => print "hello"
2011-07-04 16:20:46 +00:00
* multiline comments
* table slices (almost)
2011-07-04 16:20:46 +00:00
* add continue keyword (ouch)
* vim syntax file
* 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:
2011-07-04 16:20:46 +00:00
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)
2011-07-28 05:35:45 +00:00
not working right:
2011-07-28 05:35:45 +00:00
double_args = (...) ->
[x * 2 for x in *{...}]
2011-07-28 05:35:45 +00:00
still some issues with whitespace at end of line
* let array items in table be defined without {} when indented
* key,value table comprehensions with { }