Moonscript, anyone? - WoWInterface
Thread Tools Display Modes
03-18-19, 12:30 PM   #1
A Murloc Raider
Join Date: Mar 2019
Posts: 8
Lightbulb Moonscript, anyone?

Do you guys think it would be worth developing in Moonscript, then compiling to Lua? I'm a new dev, and I have a repo where I run a script to copy/paste all my files into the addons directory before reloading the interface in-game. I could add a build step and copy/paste the build directory instead. Thoughts?

For reference, here is Moonscript's webpage: https://moonscript.org/#learning
  Reply With Quote
03-18-19, 05:57 PM   #2
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 29
Using Moonscript is fine, but you will need to transpile to plain Lua when distributing the addon because Moonscript requires LPeg, which isn't available to the WoW client. But certainly if you prefer the Moonscript syntax, then I don't see any problems with using it. However, you will eventually be mixing plain Lua with the Moonscript if you intend to use any libraries unless you can verify that the Moonscript to access those libraries gets transpiled properly.
  Reply With Quote
03-19-19, 09:22 AM   #3
A Murloc Raider
Join Date: Mar 2019
Posts: 8
Thanks for the insight jlam! I'm pretty deep into my mod right now, but I might give it a try for my next one.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Moonscript, anyone?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off