News for hackers. Stuff that matters.
Re:Ask HN: Is Unicode Designed Badly? by mardiyah on Friday September 09, 2022 @02:55AM (#32776124)
"..characters makes most "reverse a string"..."

has nothing with Unicode

It's thing to do with whether it's Little or Big Endian

Unicode as fixed & secured as Ascii at its era

Re:Ask HN: Is Unicode Designed Badly? by coldtea on Friday September 09, 2022 @03:02AM (#32776166)
The problem the parent describes (reversing as string) has nothing to do with endianess (that would be trivial to overcome). It's not about the byte order in the architecture, wire protocol, or format -- but about how characters are defined and combined from substituent elements in Unicode itself (way beyond the byte order).
Re:Ask HN: Is Unicode Designed Badly? by HelloNurse on Friday September 09, 2022 @04:47AM (#32776914)
Zalgo text provides a straightforward example of how "reversing a string" is ambiguous and ill-defined: one might conceivably want to transpose "letters" along with their respective piles of combining marks, stacked in the same order, not to move combining marks to adjacent letters in a different order.

And of course what characters are a mark-bearing letter is application-dependent and there might be collateral requirements (e.g. if the reversed text is meant to be displayed swapping closing and opening delimiters such as parentheses: "(note)" -> ")eton(" or "(eton)" ).