@Faresh@lemmy.ml
link
fedilink
English
104M

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.

Another guy just posted emojis in their code in the comments no idea if it actually works

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.

There’s probably a rule that requires variables to start with a letter or underscore. Emoji are nor marked as letters. Something like _👍 will probably work.

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

@bleistift2@sopuli.xyz
link
fedilink
English
14M

Coding must be a nightmare if you’re choosing programming languages at random 😱

But you must also be learning quite a lot.

I’m not choosing at random lol that would be crazy but I mostly use python and have been teaching myself go and some rust

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 68 users / day
  • 163 users / week
  • 615 users / month
  • 2.29K users / 6 months
  • 1 subscriber
  • 1.66K Posts
  • 36.7K Comments
  • Modlog