this post was submitted on 12 May 2024
6 points (100.0% liked)

Memes

45660 readers
1226 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
top 5 comments
sorted by: hot top controversial new old
[–] x4740N@lemmy.world 2 points 6 months ago (1 children)

Wouldn't most development programs tell them the syntax error on the line and column where you replaced the semicolon

This wouldn't work

[–] ShortFuse@lemmy.world 2 points 6 months ago* (last edited 6 months ago)

VSCode will add a yellow box around the character and tell you it's an uncommon glyph.

https://code.visualstudio.com/updates/v1_63#_unicode-highlighting

To note, this came about because it could be valid code and it's a security risk from copy/pasting malicious code. See:

https://certitude.consulting/blog/en/invisible-backdoor/

[–] Brickardo@feddit.nl 1 points 6 months ago

Why, of all possible languages, would you suggest this for Javascript where semicolons are not mandatory

[–] tfw_no_toiletpaper@lemmy.world 1 points 6 months ago

Maybe if you're "coding" in notepad

[–] Passerby6497@lemmy.world 1 points 6 months ago

Meanwhile in VS Code: hey, I see this Unicode symbol that's confused for this expected symbol, would you like to replace it?