cross-posted from: https://lemmy.ml/post/39334581

you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 9 months ago* (4 children)

In the language Gulf of Mexico,

you can use any letters from the word "function" (as long as they're in order)

union foo () => ()
  • source
  • hideshow 8 child comments
  • [–] 15 points 9 months 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.

  • source
  • parent
  • [–] 9 points 9 months ago* (last edited 9 months ago)

    Naming

    Both variables and constants can be named with any Unicode character or string.

    const const letter = 'A'!
    var const 👍 = True!
    var var 1️⃣ = 1!
    

    This includes numbers, and other language constructs.

    const const 5 = 4!
    print(2 + 2 === 5)! //true
    

    This is a recipe for disaster I kinda wanna try

  • source
  • parent
  • [–] 4 points 9 months 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

  • source
  • parent