Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Voxera113884yWell, if the compiler of ide is any good it will pinpoint exactly where you did it :)
-
Wait... so there are keyboards which let you type non ascii commas or white spaces? What kind of keyboards are that?
-
eo287539924y@Voxera no it ain't as good. I was using VSCode. Could you share with me what IDE's can detect that please?
-
eo287539924y@Lensflare many non-latin language scripts have special punctuation:
Comma "," vs ","
dot: "。"
space: " "
colon: ":" vs ":"
Question mark: "?" vs "?"
Semicolon: ";" vs ";" -
Voxera113884y@eo2875 vscode by it self is just an editor.
What you need is a plugin for linting if you want it to find things before compiling.
And how good that is depends on the language and the linting or compiler.
But since a non ascii char at the place if a comma should result in illegal code in most cases it should be detectable.
The only exception would be a char that is counted as a letter in between other letters in a way that still does not break the code.
And that seems far fetched.
I think I just wrote a non-ASCII comma or space somewhere in my code... damn me for having so many keyboards...
rant