Software Details:
Version: 0.4.0 updated
Upload Date: 9 Feb 16
Distribution Type: Freeware
Downloads: 6
MoonScript was inspired by CoffeeScript and is one of the fastest to-Lua compilers around.
MoonScript code can be compiled at runtime or at a peculiar time and have the code executed later.
What is new in this release:
- Added continue keyword for skipping the current iteration in a loop.
- Added string interpolation.
- Added do expression and block.
- Added unless as a block and line decorator. Is the inverse of if.
- Assignment can be used in an if statement's expression.
- Added or= and and= operators.
- @@ can be prefixed in front of a name to access that name within self.__class
- @ and @@ can be used as values to reference self and self.__class.
- In class declarations it's possible to assign to the class object instead of the instance metatable by prefixing the key with @.
- Class methods can access locals defined within the body of the class declaration.
- Super classes are notified when they are extended from with an __inherited callback.
- Classes can now implicitly return and be expressions.
- local keyword returns, can be used for forward declaration or shadowing a variable.
- String literals can be used as keys in table literals.
- Call methods on string literals without wrapping in parentheses: "hello"\upper!
- Table comprehensions can return a single value that is unpacked into the key and value.
What is new in version 0.3.2:
- Added continue keyword for skipping the current iteration in a loop.
- Added string interpolation.
- Added do expression and block.
- Added unless as a block and line decorator. Is the inverse of if.
- Assignment can be used in an if statement's expression.
- Added or= and and= operators.
- @@ can be prefixed in front of a name to access that name within self.__class
- @ and @@ can be used as values to reference self and self.__class.
- In class declarations it's possible to assign to the class object instead of the instance metatable by prefixing the key with @.
- Class methods can access locals defined within the body of the class declaration.
- Super classes are notified when they are extended from with an __inherited callback.
- Classes can now implicitly return and be expressions.
- local keyword returns, can be used for forward declaration or shadowing a variable.
- String literals can be used as keys in table literals.
- Call methods on string literals without wrapping in parentheses: "hello"\upper!
- Table comprehensions can return a single value that is unpacked into the key and value.
What is new in version 0.3.1:
- Added continue keyword for skipping the current iteration in a loop.
- Added string interpolation.
- Added do expression and block.
- Added unless as a block and line decorator. Is the inverse of if.
- Assignment can be used in an if statement's expression.
- Added or= and and= operators.
- @@ can be prefixed in front of a name to access that name within self.__class
- @ and @@ can be used as values to reference self and self.__class.
- In class declarations it's possible to assign to the class object instead of the instance metatable by prefixing the key with @.
- Class methods can access locals defined within the body of the class declaration.
- Super classes are notified when they are extended from with an __inherited callback.
- Classes can now implicitly return and be expressions.
- local keyword returns, can be used for forward declaration or shadowing a variable.
- String literals can be used as keys in table literals.
- Call methods on string literals without wrapping in parentheses: "hello"\upper!
- Table comprehensions can return a single value that is unpacked into the key and value.
Requirements:
- Lua 5.1 or higher
Comments not found