directional quotes

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Tue Aug 13 16:46:24 UTC 2024


On 14/08/2024 4:37 AM, Quirin Schroll wrote:
> 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.

Well no, he was weighing it very low against the cost to performance or 
added complexity. He doesn't interact with Unicode all that much.

If you have experiences in other languages, especially with team members 
from other languages please feel free to ask Mike to arrange a meeting 
to talk to him about it.

I ended up dropping it, because in practice an IDE like IntelliJ already 
normalizes as you type, so I'm weighing it a lot further down than I'd like.



More information about the dip.ideas mailing list