News for hackers. Stuff that matters.
Re:Making Rust as Fast as Go by account42 on Wednesday May 06, 2020 @06:10AM (#23089405)
> 2. If you are parsing a string, think in terms of code points (runes in Go, chars in Rust). A good example would be the Servo CSS parser. [1]

If all your syntactically meaningful characters are in ASCII you can also use UTF-8 bytes in your parser.

Even if they aren't, no UTF-8 encoding of a character is a substring of the encoding of any other character(s).

There are no comments on this comment yet.