leaf
leaf
typically modules are tables of functions and other things. Not classes. the `load_test_server` is a helper function that wraps a default instance of the spec server there is no implicit...
Thanks for the patch, I think it's definitely worth the fix given how common this kind of output is. I see in your patch that you're doing a gsub on...
Missing line number is a bug, thanks for the report
Definitely, it looks like that particular error message is bypassing the regular error reporting mechanism accidentally. Normally there is file and line number, along with a preview of the line...
My main issue with the original suggestion is that it overloads the use of `local` to now be responsible for identifying things that can't be exported. I think having the...
What about having expressions as types? Then the passed it type would be compared with the result of `type` or ideally moonscript's `type`. http://moonscript.org/reference/standard_lib.html#typevalue ``` moon x = (arg as...
I don't want to add new keywords unless necessary. Alternative syntax could just be this: ``` moon z = ("string" a, Something b) -> ``` I don't think this syntax...
Yes, some sort of pattern matching has been on my mind for a while. So if I went with that approach it would handle this implicitly. I just haven't though...
But if there isn't pattern matching, putting that much logic into the argument list is probably not a good idea.
What about reusing the syntax for argument type checking from above, so it could look like this: ``` moon func = ?> (Vec2 a, Vec2 b) -> --... (Mat2 a,...