Comment by aapoalas
9 months ago
You can always dip into raw pointers and come back up for a reference, or eg. do a transmute to a static lifetime. Absolutely not okay according to the language rules but it will compile and will probably also run without an issue if you're not doing something wrong in your code (eg. Wanting to keep a reference to a string while you also mutate it.)
I'm actually surprised that the author didn't seem to consider this much of an option.
No comments yet
Contribute on Hacker News ↗