• toastal@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 months ago

    Unironically awesome. You can debate if it hurts the ability to contribute to a project, but folks should be allowed to express themselves in the language they choose & not be forced into ASCII or English. Where I live, English & Romantic languages are not the norm & there are few programmers since English is seen as a perquisite which is a massive loss for accessibility.

    The hotter take: languages like APL, BQN, & Uiua had it right building on symbols (like we did in math class) for abstract ideas & operations inside the language, where you can choose to name the variables whatever makes sense to you & your audience.

    • HiddenLayer555@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 months ago

      Honestly it wouldn’t even be that hard to release full translated versions of existing programming languages. Like Python in Punjabi or Kotlin in Chinese or something (both of which already support unicode variable/class/function names). Just have a lookup table to redefine each keyword and standard library name to one in that language, it can literally just be an additional translation layer above the compiler/interpreter that converts the code to the original English version.

      It’s honestly really surprising that non-English speakers have developed entirely new programming languages in their own language (unfortunately none of which are getting very widespread use even among speakers of that language), but the practice of simply translating a widely used and industry standard English programming language doesn’t seem to be much of a thing.

      If I ever make my own programming language, I’m probably going to bake multi-language support into the compiler. Just supply it with a lookup table of translated terms and the code in that language.

  • HiddenLayer555@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    Because it supports Unicode as variable/class/function names and Unicode includes all the characters humans have ever used, even dead languages (I assume for historians to digitize ancient texts?)

    • Chaos@lemmy.ml
      link
      fedilink
      arrow-up
      1
      ·
      3 months ago

      Wtf I just said these words out loud and the furniture started floating o.o

  • Ptsf@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    3 months ago

    Isn’t it all unicode at the end of the day, so it supports anything unicode supports? Or am I off base?

    • Faresh@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      I think they exclude some unicode characters from being use in identifiers. At least last I tried it wouldn’t allow me to use an emoji as a variable name.

  • Christian@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    It really bugs me when people don’t comment their code at all. I have no idea what this is supposed to do.

    • basmati@lemmus.org
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      Depends on the compiler, I’m pretty sure some versions of Borland shit themselves if you introduce an accent mark at the wrong time, much less support Unicode.