3 ms·
> C and C++ have the restrict keyword I'd say in name only given that there were numerous aliasing bugs in llvm that only became visible when Rust tried to lev
by vlovich123 2y ago
> C and C++ have the restrict keyword
I'd say in name only given that there were numerous aliasing bugs in llvm that only became visible when Rust tried to leverage it. I suspect similar pitfalls exist in every single C/C++ compiler because the rules for restrict are not only difficult to understand for use but also difficult to implement correctly.
- physicsguy 2y agoLeft a comment on another reply, but as I said there, there's a big difference in approach because restrict usually only gets sprinkled in on very few functions, but it doesn't mean it's not used.