r/lua • u/SkyyySi • May 25 '25
YueScript - A MoonScript dialect with lots of new features. Transpiles into Lua.
https://yuescript.org/doc/
17
Upvotes
r/lua • u/SkyyySi • May 25 '25
5
u/SkyyySi May 25 '25 edited May 25 '25
Some cool features in no particular order (some of which are also in MoonScript):
i += 1instead ofi = i + 1constandclosefor all Lua versions and with nicer syntax than Lua 5.4There is a lot more. All features are listed on the website and concisely explained and demonstrated.
5
u/xPhoenix777 May 25 '25
Not to be confused with lib Yue - https://libyue.com/
Though I would expect you could use Yue to write a Yue app.
3
u/xoner2 May 26 '25
Significant whitespace... Tried that with Python, it's a no go. I'd rather have auto indentation even if more verbose.
2
u/isr786 May 25 '25
I think it would be more appropriate to call this moonscript-2.0, as it's really a continuation rather than a sidestep (as "dialect" seems to imply)
1
u/Tasty-Research-2750 Nov 04 '25 edited Nov 04 '25
Hello
I am new {again} to Lua. Terrific the rise of Neovim in its fresh smart Lua genetics.. EMACS new Nvim-eNergetic cousin.
Bravo everyone
and thanks!
Found Moonscript from that path... oh yeah coffeescript for Lua
encore !!!