Skip to content

Commit b3e2aab

Browse files
committed
start writing changelog
1 parent e698e18 commit b3e2aab

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

CHANGELOG.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,64 @@
11

2+
3+
# MoonScript v0.5.0 (2016-X-XX)
4+
5+
## Syntax updates
6+
7+
### Function calls
8+
9+
Function calls with parentheses can not have free whitespace around the
10+
arguments. Additionally, a line break may be used in place of a comma:
11+
12+
```moonscript
13+
my_func(
14+
"first arg"
15+
=>
16+
print "some func"
17+
18+
"third arg", "fourth arg"
19+
)
20+
```
21+
22+
### Function argument definitions
23+
24+
Just like the function all update, function argument definitions have no
25+
whitespace restrictions between arguments, and line breaks can be used to
26+
separate arguments:
27+
28+
29+
```moonscript
30+
some_func = (
31+
name
32+
type
33+
action="print"
34+
) =>
35+
print name, type, action
36+
```
37+
38+
## Additions
39+
40+
* `elseif` can be used part of an `unless` block (nymphium)
41+
* `unless` conditional expression can contain an assignment like an `if` statement (#251)
42+
* Lua 5.3 bitwise operator support (nymphium) (Kawahara Satoru)
43+
* Makefile is Lua version agnostic (nymphium)
44+
* Lint flag can be used with `moonc` watch mode (ChickenNuggers)
45+
* Lint exits with status 1 if there was a problem detected (ChickenNuggers)
46+
* Compiler can be used with lulpeg
47+
48+
## Bug Fixes
49+
50+
* Slice boundaries can be full expressions (#233)
51+
* Destructure works when used as loop variable in comprehension (#236)
52+
* Proper name local hoisting works for classes again (#287)
53+
* Quoted table key literals can now be parsed when table declaration is in single line (#286)
54+
* Fix an issue where `else` could get attached to wrong `if` statement (#276)
55+
* Loop variables will no longer overwrite variables of the same name in the same scope (egonSchiele)
56+
* A file being deleted will not crash polling watch mode (ChickenNuggers)
57+
* The compiler will not try to compile a directory ending in `.moon` (Gskartwii)
58+
* alt_getopt import works with modern version (Jon Allen)
59+
* Code coverage not being able to find file from chunk name
60+
61+
262
# MoonScript v0.4.0 (2015-12-06)
363

464
## Changes to `super`

0 commit comments

Comments
 (0)