News for hackers. Stuff that matters.
Re:Rust needs to run, and be easy to use, on every platform by masklinn on Thursday March 08, 2018 @02:22PM (#16546862)
1. string_view makes for much more verbose code when it's the more common version.

2. string_view makes no sense when many str are not actually views into strings but either static data or "cast" bytes.

3. string_view makes no sense when str is the basic builtin type.

Renaming String to something like StrBuf might have made sense, but it's not like it would have been any clearer, people get confused by Path/PathBuf all the same if not more so.

There are no comments on this comment yet.