How would you guys feel about a compile to lua language for Love2d that has python like clean indentation based
syntax. (implemented in typescript with VSCode / Atom integration) ?
Simile to one of my older projects (https://github.com/inJuly0/Ave/blob/mas ... ntation.md)
How many of you would use something like that if I went ahead and made it ?
It would take in .ave files and spit out .lua files.
Features would be:
1. Optional strict type checking
2. Clean, indentation based syntax
3. String interpolation
4. Compound assignment operators (value += 1 instead of value = value + 1)
5. Enums , Classes and Object Oriented Programming (simulated via metatables and meta methods)
6. short hand syntactic sugars like `evenArray = i for i in 1, 10 when i % 2 == 0 `
7. constants (JS's const keyword)
I wonder if such a tool would be used by people. Let me know what you guys think
A compile to Lua language for love2D ?
-
- Party member
- Posts: 563
- Joined: Wed Oct 05, 2016 11:53 am
Re: A compile to Lua language for love2D ?
Just in case you aren't aware, that sounds mighty bit like moonscript, and some people do use it for their love2d projects.
Re: A compile to Lua language for love2D ?
Sound a bit like Moonscript. I don't like Moonscript because it add too much syntax and symbols.
If you keep Lua simplicity why not.
If you keep Lua simplicity why not.
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: A compile to Lua language for love2D ?
I personally don't like the python-esque strict indentation being an important syntax thing... but then again, if you WANT to make this, why listen to randos? Just do it!
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: A compile to Lua language for love2D ?
I actually did not know about moonscript.MrFariator wrote: ↑Thu May 07, 2020 8:44 am Just in case you aren't aware, that sounds mighty bit like moonscript, and some people do use it for their love2d projects.
That looks a lot about what I had in mind but with a lot of keywords. Thanks for letting me know !
That's actually because I have a bunch of projects and stuff to learn so I was wondering if I should invest time into this thing at all. I might not do it if I'm the only guy using it. But then again, I can't say for sure.
Who is online
Users browsing this forum: Amazon [Bot], Bing [Bot], rabbitboots and 8 guests