3 ms·
> How much advantage is there to rust implementation vs c++ if unsafe is used so liberally? I think this code could potentially be refactored with smaller unsa
by wyldfire 10y ago
> How much advantage is there to rust implementation vs c++ if unsafe is used so liberally?
I think this code could potentially be refactored with smaller unsafe blocks, if that were a goal.
The benefit in general is present for many reasons, among which is that you still have to opt-in to unsafe{} and SeaHash consumers wouldn't need to in order to leverage these features.
The benefit for SeaHash specifically is that Rust isn't merely a safer language, it's also one with arguably newer/better language features than C++. And it's one that has support for several targets today.