3 ms·
In Rust's case, to be clear, they're stored in .rodata. That's where the &'static str points to. The auto copy to the heap behavior is controversial, desired b
by steveklabnik 10y ago
In Rust's case, to be clear, they're stored in .rodata.
That's where the &'static str points to.
The auto copy to the heap behavior is controversial, desired by many for ergonomic reasons, disliked by others for implicit heap allocation. We'll see if it gets added in the future or not!
- vvanders 10y agoYeah, you'd find me in the latter camp for sure :). Thanks for the details, it's appreciated.