1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-23 21:02:09 +00:00

New note: Praise for MoonScript

This commit is contained in:
Rohan Kumar 2023-02-09 20:05:06 -08:00
parent a4ae98d2d6
commit dbecd0e252
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -0,0 +1,13 @@
---
title: "Praise for MoonScript"
date: 2023-02-09T20:05:06-08:00
syndicatedCopies:
- title: 'The Fediverse'
url: 'https://pleroma.envs.net/notice/ASWazRoTC73EHFeRGa'
---
[MoonScript](https://moonscript.org/) (a language with a CoffeeScript-like syntax that transpiles to Lua) continues to be the most enjoyable programming language I have ever used.
It's not the most practical choice for everything; I probably would choose something else for a big collaborative project. But it's an absolute joy to use something that truly feels like "executable pseudocode", like a simpler Python alternative with a bias towards functional programming. If you can grok Lua's "tables for everything" model, then [the MoonScript language guide](https://moonscript.org/reference/) should help you pick up the language in minutes.
If we had a "gradually typed" MoonScript to target [Luau](https://luau-lang.org/) instead of Lua, I'd probably use it for everything.