News for hackers. Stuff that matters.
Re:Modern C++ Won't Save Us by likpok on Monday April 22, 2019 @10:18PM (#19725064)
Does rust have a structure to handle something like a stringview?
Re:Modern C++ Won't Save Us by marcianx on Monday April 22, 2019 @10:28PM (#19725094)
Yes, a borrowed string slice `&str`, whose lifetime is tracked precisely by the compiler to avoid use-after-free errors. https://doc.rust-lang.org/book/ch04-03-slices.html#string-sl...
Re:Modern C++ Won't Save Us by masklinn on Tuesday April 23, 2019 @05:51AM (#19726960)
That's one of the language's primitives: https://doc.rust-lang.org/std/primitive.str.html