diff options
| author | Li Jin <dragon-fly@qq.com> | 2022-08-16 14:33:15 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2022-08-16 14:33:15 +0800 |
| commit | 5375fd872490eaef7499e344585476edf58005d8 (patch) | |
| tree | f71632cdd420c9ca821cfca103dc67579d5c7c61 | |
| parent | 6eda1c0cb67dca6ada35617faa5abda2146fb209 (diff) | |
| download | yuescript-5375fd872490eaef7499e344585476edf58005d8.tar.gz yuescript-5375fd872490eaef7499e344585476edf58005d8.tar.bz2 yuescript-5375fd872490eaef7499e344585476edf58005d8.zip | |
update changlog.
Diffstat (limited to '')
| -rw-r--r-- | CHANGELOG.md | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d106df0..33c038b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
| @@ -2,6 +2,30 @@ | |||
| 2 | 2 | ||
| 3 | The implementation for the original Moonscript language 0.5.0 can be found in the `0.5.0` branch of Yuescript. The Moonscript with fixes and new features is in the main branch of Yuescript. Here are the changelogs for each Yuescript version. | 3 | The implementation for the original Moonscript language 0.5.0 can be found in the `0.5.0` branch of Yuescript. The Moonscript with fixes and new features is in the main branch of Yuescript. Here are the changelogs for each Yuescript version. |
| 4 | 4 | ||
| 5 | ## v0.14.5 | ||
| 6 | |||
| 7 | ### Added Features | ||
| 8 | |||
| 9 | * Added -g option for Yuescript CMD tool. | ||
| 10 | * Added option `--target=5.1` to generate Lua 5.1 compatible codes. | ||
| 11 | * Added const destructuring and imported item is now const by default. | ||
| 12 | ```moonscript | ||
| 13 | const :width, :height = View.size | ||
| 14 | const {:x = 0.0, :y = 0.0} = point | ||
| 15 | import a from b | ||
| 16 | -- report compiler error when doing width = nil or x = nil or a = nil | ||
| 17 | ``` | ||
| 18 | * Added left and right side item numbers check in assignments. | ||
| 19 | ```moonscript | ||
| 20 | a, b, c = 1 -- report error instead of implicitly assigning nil to extra variables | ||
| 21 | a, b, c = f! -- expecting function call to return multiple values is accepted | ||
| 22 | a = 1, 2 -- report error instead of ignoring extra values | ||
| 23 | ``` | ||
| 24 | |||
| 25 | ### Fixed Issues | ||
| 26 | |||
| 27 | * Fix missing checks and issues related to doing destrucuring to if/switch expressions that returns values in multiple clauses. | ||
| 28 | |||
| 5 | ## v0.13.4 | 29 | ## v0.13.4 |
| 6 | 30 | ||
| 7 | ### Added Features | 31 | ### Added Features |
| @@ -33,7 +57,7 @@ The implementation for the original Moonscript language 0.5.0 can be found in th | |||
| 33 | y: 200 | 57 | y: 200 |
| 34 | * width: 300 | 58 | * width: 300 |
| 35 | height: 400 | 59 | height: 400 |
| 36 | 60 | ||
| 37 | for item in *items | 61 | for item in *items |
| 38 | switch item | 62 | switch item |
| 39 | when :x, :y | 63 | when :x, :y |
