Comment

Comment by ryanworl

Another useful unsafe slice operation is casting a byte slice to a string so you can e.g. use it as a map key. Watch your lifetimes though!

You probably also wouldn’t want to use any string manipulation functions on it, but I’ve never had a reason to do that anyway.

parent ryanworl 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton