Hacker News new | ask | show | jobs
by throwawaymaths 1094 days ago
You can noalias in zig.
2 comments

You can noalias in C as well, but it is used so infrequently in production C code that llvm didn’t even compile it correctly until a couple years ago. Figuring out when parameters in a C program can safely be declared noalias is very tricky, and I’ve almost never seen anyone bother with it. I assume the same is true in zig.
The point is that rust does it automatically
You probably only need it in a few places