Li Jin
Li Jin
Thought of a more decent way to write empty block. I updated the macro functions, and now we can make use of macro to help us better deal with the...
Renamed builtin macro $MODULE to $FILE. And found a simple way to implement the function to skip the rest codes in a block with current Yuescript. ```moonscript macro skip =...
It's backcall syntax taken from Livescript. They are used for unnest callbacks. ```moonscript do (data) print result -- with fewer indents -- So that macro skip = -> "" do...
> Wouldn't it be much easier to read if you just had a `pass` instruction? It won't be hard to get all the functions implemented. Just wanted to show that...
The export statement works like an assignment. Using a do block could help, like this: ```moonscript export isAbsolute = do if IS_WINDOWS (path) -> astring path, "isAbsolute: expected string, got...
Yuescript is more like a macro system for Lua to introduce more syntax sugar and compiles to Lua. Since the table filling function is not implemented in Lua compiler itself,...
There is a Coffeescript dialect named Livescript which adds many similar features for new syntax by inlining many Javascript codes or functions, but Livescript provides function to merge multiple source...
Add an implementation for the Fill operator, works on both array table and hash table. ```moonscript template = { foo: "Hello" bar: "World" "!" } specialized = { "a", "b",...
Just considered getting some static type check functions implemented before answering to your issue. But I'm not getting time to finish the work recently. Porting tl type checker is the...
Played with tl for a while, I find it won't functioning well to just add type annotations support for Moonscript. Because Moonscript is generating some anonymous functions without annotations. For...