Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
proposal: spec: disallow Hangul filler codepoints in Go identifiers #40717
The Hangul filler codepoints (U+115F, U+1160, U+3164) are rendered as zero-width white space as specified by the Unicode standard. And they are allowed in Go identifiers.
What version of Go are you using (
Relevant issue about homographs attacks with go/vet: #20115 Seems this would be a similar use case.
Referencing rsc in #20209 (comment)
Looks like you missed U+FFA0.
But where in the Unicode standard does it say these are zero-width spaces?
I do see that they (including U+FFA0) have the Default_Ignorable_Code_Point property, and they are the only Letter-classified code points that do. So we should probably include them in the vet checks being contemplated in #20115.
Also, at least in the font I'm using, there's a clear indication that dodgy Unicode is happening: