Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Canonically equivalent Unicode sequences look the same to machines.

Memcmp disagrees, as do the default equality operators of most programming languages in existence.



Sure, but normalisation can nonetheless happen automatically and implicitly in many places.


Rust uses separate string type for file names. I think, that's a good approach. If language normalizes strings behind your back, that's not very good.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: