I don’t need something practical. I just need something fun to keep me motivated.

  • orclev@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    8 days ago

    Lua to me is the language JavaScript wishes it was. It’s super minimal and actually designed reasonably well. It knows what it is and isn’t trying to be something else. I wouldn’t want to try to write an entire app in it, but for a scripting language embedded in something else there’s not a lot of languages I’d rate higher.

    • ageedizzle@piefed.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 days ago

      This might sound silly but why would you not want to write an app with it? Like, what are its limitations? I know very little about Lua

      • orclev@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        Lack of advanced features like generics and a weak type system (although still better than JavaScripts type system). Its library ecosystem is also pretty anemic because it’s generally assumed if you’re writing Lua it’s as part of a script embedded in something else and most of those won’t let you pull in random Lua libraries. There are stand alone Lua interpreters that let you run Lua on its own but most people writing Lua code aren’t using them and so the community to develop a rich library ecosystem isn’t really there like it is in most other languages.