Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
klaussilveira
2y ago
0 comments
Save
Share
&str vs String. Oh boy.
0 comments
5 comments · 2 top-level
top
newest
oldest
andrepd
2y ago
· 2 in thread
Yeah, if std::string vs std::string_view is "a major hurdle"... I don't know what so say
ziddoap
2y ago
Where did you see "a major hurdle" written?
Capricorn2481
2y ago
You are doing exactly what is being criticized in the Rust community. Bad faith reads of someone who spent significant time getting into the language.
brabel
2y ago
· 1 in thread
https://raw.githubusercontent.com/lesterli/blockchain/master...
whytevuhuni
2y ago
This is missing a few useful ones, like Box<str>, Arc<str>, Cow<'a, str>, SmallVec<u8>, transmuted newtype references like &UserId, and of course the string type you implemented yourself because the previous ones were not good enough.
j
/
k
navigate · click thread line to collapse