DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Posted May 3, 2022 11:07 UTC (Tue) by mathstuf (subscriber, #69389)In reply to: DeVault: Announcing the Hare programming language by peter-b
Parent article: DeVault: Announcing the Hare programming language
> it isn't UB for a char8_t* to point to a string buffer that doesn't contain UTF-8.
One reason that comes to my mind is that it would need to eschew `u8ptr++` because if it currently points at a code point encoded with multiple bytes, incrementing one byte would make it UB, no? Or would `++` inspect the byte encoded length of the current code point and jump an appropriate amount? That certainly seems novel too.
