3
kobenz
5d

I gotta say, it's really fucking annoying I always need to write a SHIT TON O BOILER PLATE for any lua code

Comments
  • 1
    can you elaborate please? I'm thinking about learning lua
  • 1
    and here I thought the appeal was that it was a concise language
  • 3
    @kiki like, say, you're doing some async IO. You have coroutines, but you have to write your own async/await mechanism. Same if you're doing OOP, either emulate the "class" keyword or define every single class using prototypical inheritance.
  • 1
    It's like that everytime. It seems small at first, but it adds up a lot
  • 1
    @kobenz oh so basic language support is missing
  • 1
    Honestly theres been some solid attempts to build lua-like languages and improvements to lua.

    I like wren a lot, keeps the smallness, but adds some much needed affordances.

    Moonscript is cool too but is definitely abandoned.

    From a technical perspective they give you very few things in the way of maintainability (but what scripting language doesn't). But for what they are, they're genuine if small improvements to lua.

    A proper language building on lua's bones, keeping all its constraints in mind, could go a long way in the same way the erlang vm now gets more use than erlang.
Add Comment