How this plays out in reality:
“This line at this character is giving me a syntax error… I’ll just delete and rewrite it, maybe there’s a stray whitespace. Oh, it runs now. Weird. Whatever.”
While I imagine this is typically true, I once spent a couple hours on something like this.
spoken like someone who hasn’t been bitten by codepoints before
Or you would spot the changed line in git immediately and revert it
#DEFINE TRUE (__LINE__ % 100)
The real Satan is always in the comments
You’re fucking diabolical
hi satan
Don’t languages generally tell you about potential look-alike characters specifically for this reason?
The code editor I use would say something like syntax error ‘;’, expected ‘;’ and underline the character in red. That might lead to some head scratching as apparently the Greek character is literally the same, but with a different Unicode value.
I’m talking about when you try to run/compile code, not in the editor.
Go make a bunch of improvements to someone’s github
Should go and mess with that Google website drm thing if it’s still active
I would just delete it since js is better without semicolons