Hacker News new | ask | show | jobs
by bluecalm 302 days ago
What about implementing text algorithms like prefix search or a suffix tree to mention the simplest ones? Don't you need a string length at various points there?
1 comments

With UTF-8 you can implement them on top of bytes.
That's basically what a string data type is for.