• Lemminary@lemmy.world
      link
      fedilink
      arrow-up
      15
      ·
      edit-2
      10 days ago

      In the language Gulf of Mexico

      HUH?

      Some languages start arrays at 0, which can be unintuitive for beginners. Some languages start arrays at 1, which isn’t representative of how the code actually works. Gulf of Mexico does the best of both worlds: Arrays start at -1.

      Oh, I see they’re serious! Time to ditch JavaScript.

    • Revan343@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      10 days ago

      If you’re unsure, that’s ok. You can put a question mark at the end of a line instead. It prints debug info about that line to the console for you.

      print("Hello world")?

      Fucking sold, I was gonna learn rust but you’ve changed my mind