moonscript/thoughts

32 lines
489 B
Plaintext
Raw Normal View History

2011-07-04 16:20:46 +00:00
# TODO
#
#
#
2011-11-06 19:16:34 +00:00
- don't reuse _, put a local on it, so we don't keep around trash
-- swithc X with Func
2011-11-06 19:16:34 +00:00
- error with stray comma at end of line
2011-07-04 16:20:46 +00:00
* multiline comments
* table slices (almost)
2011-07-04 16:20:46 +00:00
* combine for and if line decorators
* allow return anywhere in block
2013-12-30 09:38:22 +00:00
-- all function literals have a string that is their function definition
2011-07-28 05:35:45 +00:00
2013-12-30 09:38:22 +00:00
-- super should work here:
2013-12-30 09:38:22 +00:00
thing = Thing!
thing.method = ->
super 1,2,3
2013-12-30 09:38:22 +00:00
-- goes to
2013-12-30 09:38:22 +00:00
thing.method = function(self) do
self.__class:method(1,2,3)
end