| ▲ | William_BB 3 hours ago | |
I agree with your general sentiment, but imo this particular example is oversold. Maybe I'm wrong. The difference between const ref string and string view is one of the first things you learn when you learn about `string view`. To me, the signature of `Sanitize` is fishy because it's implied that the returned string view is of the const ref string argument. But I agree there are more than one ways to break it. | ||
| ▲ | lollollol3 2 hours ago | parent [-] | |
I think it is a real issue, yet in some ways worse in Rust. Mojo likely does this way better than both Rust and C++. An addition could be made to C++ to make this less prone to errors, but Rust cultists and Jewish pedophiles make that harder to fix, with Jewish pedophiles being entrenched in both Rust and C++ political positions as well as in Ycombinator (Epstein board member). | ||