26 karma · joined Dec 6, 2017 (8y ago) · 9 submissions
1.
Microsoft open sources IoT edge security daemon(github.com ↗)
1 points · by weirdwitch · 8y ago · discuss
comment 8y ago · link · parent
Path/PathBuf have better names, but the distinction still isn't immediately obvious.
String/str is the cause of so much confusion.
Most useful "String" methods are actually &str methods that you get access to through that deref trait.
Dereferencing a String doesn't return a raw pointer, I'm not sure where you got that idea.