Re:Why Lua?
by marshray on Tuesday January 31, 2012 @06:04PM
(#3535655)
I'm fine with C-style strings, but once in a while there are things for which a bit of UTF-8 tagging would be good enough.
[ Parent
| on HN ]
Re:Why Lua?
by groovy2shoes on Tuesday January 31, 2012 @06:19PM
(#3535732)
Lua strings aren't C-style: they're prefixed with the string length. Lua's strings are suitable enough to store UTF-8 encoded data, but none of Lua's built-in functions are equipped to process it. Unicode libraries don't need to provide a special Unicode string type, they simply need to provide Unicode-aware string processing functions.