3 ms·
> there is only a well-defined subset of Unicode characters that should ever be allowed in the codebase It's not even remotely well-defined, and probably never
by chmod775 5y ago
> there is only a well-defined subset of Unicode characters that should ever be allowed in the codebase
It's not even remotely well-defined, and probably never will be. Also, as long as we keep adding to unicode, you will need to keep your whitelist of code points updated.
You can however find a well-defined subset of characters that can be allowed.
In either case you'd be essentially excluding entire languages.
- amenod 5y agoYou misunderstood my point: >> There is only ... that should ever be allowed... What I am saying is someone decides to code in a non-english language (which is completely reasonable) they should define a subset of unicode characters that is acceptable. Additionally, the allowed characters should not permit tricks like these. As for excluding entire languages... well, yes. This is already the case today. But OTOH it's not like understanding what "if" means gives you any special advantage in programming.