directional quotes

Quirin Schroll qs.il.paperinik at gmail.com
Tue Aug 13 16:37:13 UTC 2024


On Tuesday, 13 August 2024 at 15:46:01 UTC, Richard (Rikki) 
Andrew Cattermole wrote:
> On 14/08/2024 3:42 AM, Quirin Schroll wrote:
>> With ASCII, what strings are equal and which aren’t is 
>> obvious. With Unicode, it’s some special circle of hell:
>> 
>> |// This compiles: void main() { int ä = 0; int ä = 1; } |
>> 
>> Maybe I’m overly conservative, but I can tell you, it’s not 
>> out of spite, it’s just from real, non-hypothetical 
>> experience. Probably, people who live and work in the US have 
>> little to no experience with those kinds of issues. UK folk 
>> basically only because £ (U+00A3) is non-ASCII.
>
> All D code is expected to be in normal form C, eliminating this 
> issue.

Again, compilers making assumptions.

My bet is most programmers don’t know what a UTF normal form is, 
but use the keys on their keyboard and Ctrl+C, Ctrl-V stuff. It’s 
so niche, Wikipedia has an article about 
normalization/equivalence in < 10 languages, none of which is 
Spanish.

> Compiler doesn't give you any help on this, Walter didn't want 
> it.

The issue is Walter being too good at avoiding rookie mistakes.


More information about the dip.ideas mailing list