• Faresh@lemmy.ml
    link
    fedilink
    English
    arrow-up
    9
    ·
    15 hours 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.

      • Faresh@lemmy.ml
        link
        fedilink
        arrow-up
        7
        ·
        11 hours ago

        That code was C++ or something like that. Not GDScript.

        I tested this on Godot 4.2.1. You can write identifiers using a different writing system other than latin and you are allowed to have emojis in strings, but you aren’t allowed to use emojis in identifiers.

        • histic@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          4
          ·
          11 hours ago

          Ah I’m unfamiliar with most languages I just use python and random others for personal projects