Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

MoonScript v0.5.0

Latest

Choose a tag to compare

@leafoleafo released this 26 Sep 01:24
· 89 commits to master since this release

Windows binary:https://github.com/leafo/moonscript/releases/tag/win32-v0.5.0

Syntax updates

Function calls

Function calls with parentheses can now have free whitespace around the
arguments. Additionally, a line break may be used in place of a comma:

my_func("first arg"=>print"some func""third arg","fourth arg")

Function argument definitions

Just like the function all update, function argument definitions have no
whitespace restrictions between arguments, and line breaks can be used to
separate arguments:

some_func=(  nametype  action="print")=>print name,type, action

Additions

  • elseif can be used part of anunless block (nymphium)
  • unless conditional expression can contain an assignment like anif statement (#251)
  • Lua 5.3 bitwise operator support (nymphium) (Kawahara Satoru)
  • Makefile is Lua version agnostic (nymphium)
  • Lint flag can be used withmoonc watch mode (ChickenNuggers)
  • Lint exits with status 1 if there was a problem detected (ChickenNuggers)
  • Compiler can be used with lulpeg

Bug Fixes

  • Slice boundaries can be full expressions (#233)
  • Destructure works when used as loop variable in comprehension (#236)
  • Proper name local hoisting works for classes again (#287)
  • Quoted table key literals can now be parsed when table declaration is in single line (#286)
  • Fix an issue whereelse could get attached to wrongif statement (#276)
  • Loop variables will no longer overwrite variables of the same name in the same scope (egonSchiele)
  • A file being deleted will not crash polling watch mode (ChickenNuggers)
  • The compiler will not try to compile a directory ending in.moon (Gskartwii)
  • alt_getopt import works with modern version (Jon Allen)
  • Code coverage not being able to find file from chunk name
Assets2
Loading
43trh and AntonioModer reacted with thumbs up emoji
2 people reacted

[8]ページ先頭

©2009-2025 Movatter.jp