TIL about the greek question mark

Tell me, can you tell the difference between these two characters?

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

0 points

I get this warning in my IDE (VS Code) so I feel safe:

The character U+037e “;” could be confused with the ASCII character U+003b “;”, which is more common in source code.

permalink
report
reply
0 points

Laughs in just removing all semicolons because it’s not necessary in JS.

permalink
report
reply
0 points

It is recommended. But in TS it is not necessary with rare exceptions.

permalink
report
parent
reply
0 points
*

Yes, true. I also did setup so that any missing semicolon will be added, because I got sick of not inserting them sometimes and then some code was without them and some was. (Before I tested just leaving them all out, out of fun, so I got into the habit of just leaving them out regularly)

permalink
report
parent
reply
0 points

thanks to eslint enforcing it in the default rules it’s necessary for most typescript projects

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create 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.

Community stats

  • 6.7K

    Monthly active users

  • 796

    Posts

  • 7.3K

    Comments

Community moderators