any modern compiler or ide will notice this and warn you.
meanwhile vim:
If you are coding on vim you use a language server 😝
vim is not an ide i believe. but an lsp will notice
Any remotely capable IDE will immediately show you what, and where, the problem is.
That means that detection was added explicitly because this prank was done enough that it was worth it to add.
We do a little trolling
The reason is in fact not only because of this exact symbol, but because people tried to change program’s behavior in a malicious way by replacing legitimate code with same looking symbols.
I knew a guy who used the Unicode character for a space in his password. He figured if anyone ever saw his password they’d think it was a space and still not be able to use it. It’s silly, but it was a fun thing to learn about him.
Which character. Does it need Combination of keys or a Single key.
A combination of keys. I don’t remember the code anymore.
Alt-255 was the old-school method.
I use alt 0160 for a non-line breaking space.
I can’t type alt codes with my keyboard.
That’s pretty neat, but also means he will never be able to log into things on mobile
Bitwarden has no problem filling passwords containing unicode characters on Andorid.
semicolons are optional in js anyway…
Most of the time. Sometimes it can lead to code that is ambiguous and ASI picks the wrong way to interpret it.
Right, but there’s not going to be a syntax error.
ESLint has entered the room
Or any coding software really. Does this guys friend code in notepad?
If the language doesn’t force me to use semicolons i will forget
Technically I don’t think any Greek layout uses a different Unicode codepoint for the question mark. In fact, the ordinary semicolon symbol is used, so what the meme describes would probably not happen IRL.
Does all this make it any less funnier? No. It’s still brilliant.
Unicode should have enforced the principle of using the same encoding for similar looking characters like they did with CJK instead of allowing bullshit like the Cyrillic “o” or the Greek question mark.
1,000% percent.
Me who programs in rust which has a specific compiler message to tell me what happened
deleted by creator
Who uses semicolons in Javascript?
Every real programmers






