5 ms·
While it may be simpler, it also removes any safety that rust adds. I'd imagine you'd get more mileage out of just using pointers and unsafe blocks liberally to
by fish_fan 9y ago
While it may be simpler, it also removes any safety that rust adds. I'd imagine you'd get more mileage out of just using pointers and unsafe blocks liberally to get lifetime checking where you can.
- skariel1 9y agoIt is still safer than c, as it will not allow any segfaults. The only thing that can happen is a runtime error but no memory corruption so it is more akin to say Java or Go
- steveklabnik 9y agoThe context of this thread is unsafe, which can segfault.
- ComputerGuru 9y agoYou are describing the behavior of standard, safe rust code. Using unsafe blocks throws all that away.