Hacker News new | ask | show | jobs
by fanf2 624 days ago
One of the fun things about the Unicode bidi algorithm is that it flips brackets. You always use ( as an open round bracket, but if your script is rtl it appears like ). In order to support this feature, Unicode has a list of all known kinds of reversible paired brackets.

https://www.unicode.org/Public/UNIDATA/BidiBrackets.txt

For extra fun, C++ < angle brackets > are, of course, not brackets.